summaryrefslogtreecommitdiffstats
path: root/watch-library
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-05-09 10:57:16 -0400
committerJoey Castillo <joeycastillo@utexas.edu>2022-05-09 10:57:16 -0400
commit03b616da62da4034aab1b4c3cade13d15cdecd77 (patch)
treec4f63383f3705d8a6d864199ab59e3361ceeb3da /watch-library
parent0c87114ee13a0b9124c48699a63f6631974a5bf7 (diff)
downloadSensor-Watch-03b616da62da4034aab1b4c3cade13d15cdecd77.tar.gz
Sensor-Watch-03b616da62da4034aab1b4c3cade13d15cdecd77.tar.bz2
Sensor-Watch-03b616da62da4034aab1b4c3cade13d15cdecd77.zip
prevent buf from escaping into global namespace
Diffstat (limited to 'watch-library')
-rw-r--r--watch-library/hardware/watch/watch_private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/watch-library/hardware/watch/watch_private.c b/watch-library/hardware/watch/watch_private.c
index a0525d3c..e651f3eb 100644
--- a/watch-library/hardware/watch/watch_private.c
+++ b/watch-library/hardware/watch/watch_private.c
@@ -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;