fix buffer overflow in test driver
This commit is contained in:
parent
841b8cff03
commit
30e12ba83d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user