projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc1b00d
)
fix lengthcheck in m_getfld2()
author
Philipp Takacs
<philipp@bureaucracy.de>
Fri, 27 Nov 2015 10:59:03 +0000
(11:59 +0100)
committer
Philipp Takacs
<philipp@bureaucracy.de>
Fri, 27 Nov 2015 10:59:03 +0000
(11:59 +0100)
The lenght check akcepted to big field names
sbr/m_getfld2.c
patch
|
blob
|
history
diff --git
a/sbr/m_getfld2.c
b/sbr/m_getfld2.c
index
6545d0f
..
74d25e4
100644
(file)
--- a/
sbr/m_getfld2.c
+++ b/
sbr/m_getfld2.c
@@
-202,7
+202,7
@@
copyname(char *dst, char *src)
}
len = sep - src;
- if (len >= NAMESZ) {
+ if (len >= NAMESZ - 1) {
return 0;
}