From 30e12ba83df72773c714328896008a59db07228f Mon Sep 17 00:00:00 2001 From: medoc Date: Wed, 28 Aug 2013 22:12:30 +0200 Subject: [PATCH] fix buffer overflow in test driver --- src/query/dynconf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/dynconf.cpp b/src/query/dynconf.cpp index 19ea556d..c8527071 100644 --- a/src/query/dynconf.cpp +++ b/src/query/dynconf.cpp @@ -194,7 +194,7 @@ int main(int argc, char **argv) hist.enterString(sk, value); } else { for (int i = 0; i < 10; i++) { - char docname[100]; + char docname[200]; sprintf(docname, "A very long document document name" "is very long indeed and this is the end of " "it here and exactly here:\n%d", i);