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);
|
hist.enterString(sk, value);
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
char docname[100];
|
char docname[200];
|
||||||
sprintf(docname, "A very long document document name"
|
sprintf(docname, "A very long document document name"
|
||||||
"is very long indeed and this is the end of "
|
"is very long indeed and this is the end of "
|
||||||
"it here and exactly here:\n%d", i);
|
"it here and exactly here:\n%d", i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue