]> git.earman.xyz Git - sensor-watch.git/commitdiff
prevent buf from escaping into global namespace
authorJoey Castillo <joeycastillo@utexas.edu>
Mon, 9 May 2022 14:57:16 +0000 (10:57 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Mon, 9 May 2022 14:57:16 +0000 (10:57 -0400)
watch-library/hardware/watch/watch_private.c

index a0525d3c005d7340ed58c1d0b98fd31f4141ff16..e651f3ebe02d445e37241e4566dc7ece302fecce 100644 (file)
@@ -255,7 +255,7 @@ int _write(int file, char *ptr, int len) {
     return 0;
 }
 
-char buf[256] = {0};
+static char buf[256] = {0};
 
 int _read(int file, char *ptr, int len) {
     (void)file;