From 02ad941fcb6ccc24fab97dff24a8f5253ab7e538 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Fri, 27 Nov 2015 11:59:03 +0100 Subject: [PATCH] fix lengthcheck in m_getfld2() The lenght check akcepted to big field names --- sbr/m_getfld2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.7.10.4