From: Philipp Takacs Date: Fri, 27 Nov 2015 10:59:03 +0000 (+0100) Subject: fix lengthcheck in m_getfld2() X-Git-Tag: mmh-0.3~39^2~4 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=02ad941fcb6ccc24fab97dff24a8f5253ab7e538;p=mmh fix lengthcheck in m_getfld2() The lenght check akcepted to big field names --- diff --git a/sbr/m_getfld2.c b/sbr/m_getfld2.c index 6545d0f..74d25e4 100644 --- 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; }