]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix warning re: buffer overrun
authorJoey Castillo <joeycastillo@utexas.edu>
Mon, 9 May 2022 16:03:24 +0000 (12:03 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Mon, 9 May 2022 16:03:24 +0000 (12:03 -0400)
movement/watch_faces/sensor/accelerometer_data_acquisition_face.c

index 6ef9c6db8d7556b1174016c2ffacdee6cff4dd61..9da8b35c9bdfbbc3b8360620cfe2edc58805a986 100644 (file)
@@ -282,7 +282,7 @@ static void update(accelerometer_data_acquisition_state_t *state) {
 }
 
 static void update_settings(accelerometer_data_acquisition_state_t *state) {
-    char buf[12];
+    char buf[13];
     watch_clear_colon();
     if (state->beep_with_countdown) watch_set_indicator(WATCH_INDICATOR_BELL);
     else watch_clear_indicator(WATCH_INDICATOR_BELL);