projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7385c76
)
altos: Maximum pyro configuration parameter has 4 bytes in the name
author
Keith Packard
<keithp@keithp.com>
Tue, 3 Jun 2014 05:04:11 +0000
(22:04 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/kernel/ao_pyro.c
b/src/kernel/ao_pyro.c
index e59f5bc4bdbf8881ab1c88a1970127ae687604bc..56758fa448d4844ce50d6c1ac2491dcef17875c4 100644
(file)
--- a/
src/kernel/ao_pyro.c
+++ b/
src/kernel/ao_pyro.c
@@
-281,7
+281,7
@@
ao_pyro_check(void)
#define NO_VALUE 0xff
-#define AO_PYRO_NAME_LEN
3
+#define AO_PYRO_NAME_LEN
4
#if !DISABLE_HELP
#define ENABLE_HELP 1