code cleanup from cppcheck

This commit is contained in:
Mark Vejvoda
2013-06-20 22:51:28 +00:00
parent 511ba5134f
commit 4848e957e7
3 changed files with 3 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ static int getFileAndLine(char *function, void *address, char *file, size_t flen
*p++ = 0;
// after file name follows line number
strcpy (file , buf);
sscanf (p,"%d", &line);
sscanf (p,"%10d", &line);
}
else {
strcpy (file,"unknown");
@@ -128,7 +128,7 @@ static int getFileAndLine(char *function, void *address, char *file, size_t flen
*p++ = 0;
// after file name follows line number
strcpy (file , buf);
sscanf (p,"%d", &line);
sscanf (p,"%10d", &line);
}
else {
strcpy (file,"unknown");