fix buffer overflow in test driver
This commit is contained in:
parent
2c5ee53797
commit
cf130485ba
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue