Commit 88faf150 authored by unknown's avatar unknown

harmless "buffer overflow" fixed

parent abc6cf5c
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#endif #endif
const char *filename= "test3.MSI"; const char *filename= "test3";
uint tests=10,forks=10,key_cacheing=0,use_log=0; uint tests=10,forks=10,key_cacheing=0,use_log=0;
static void get_options(int argc, char *argv[]); static void get_options(int argc, char *argv[]);
...@@ -363,7 +363,7 @@ int test_write(MI_INFO *file,int id,int lock_type) ...@@ -363,7 +363,7 @@ int test_write(MI_INFO *file,int id,int lock_type)
} }
sprintf(record.id,"%7d",getpid()); sprintf(record.id,"%7d",getpid());
strmov(record.text,"Testing..."); strnmov(record.text,"Testing...", sizeof(record.text));
tries=(uint) rnd(100)+10; tries=(uint) rnd(100)+10;
for (i=count=0 ; i < tries ; i++) for (i=count=0 ; i < tries ; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment