Fix gcc sprintf warnings
Gcc 9 has become more vocal with sprintf buffer overflow checking. Remove these sprintf warnings by changing the offending calls to a snprintf wrapper that will explicitly check the result.
This commit is contained in:
@@ -1058,7 +1058,7 @@ boolean so;
|
||||
topten_print_bold(linebuf);
|
||||
} else
|
||||
topten_print(linebuf);
|
||||
Sprintf(linebuf, "%15s %s", "", linebuf3);
|
||||
Snprintf(linebuf, sizeof(linebuf), "%15s %s", "", linebuf3);
|
||||
lngr = strlen(linebuf);
|
||||
}
|
||||
/* beginning of hp column not including padding */
|
||||
|
||||
Reference in New Issue
Block a user