altos: Maximum pyro configuration parameter has 4 bytes in the name
authorKeith Packard <keithp@keithp.com>
Tue, 3 Jun 2014 05:04:11 +0000 (22:04 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 3 Jun 2014 05:04:11 +0000 (22:04 -0700)
"f>=" needs four bytes, not just three to store the whole string. If
we only store three, then we never manage to compare correctly as the
null terminating byte is missing.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_pyro.c

index e59f5bc4bdbf8881ab1c88a1970127ae687604bc..56758fa448d4844ce50d6c1ac2491dcef17875c4 100644 (file)
@@ -281,7 +281,7 @@ ao_pyro_check(void)
 
 #define NO_VALUE       0xff
 
 
 #define NO_VALUE       0xff
 
-#define AO_PYRO_NAME_LEN       3
+#define AO_PYRO_NAME_LEN       4
 
 #if !DISABLE_HELP
 #define ENABLE_HELP 1
 
 #if !DISABLE_HELP
 #define ENABLE_HELP 1