Corrected some GCC 7.1+ compile warnings (#3522)

* Fixes #2787 and fixes #3513.
* Resolved some format-truncation warnings.
* The remaining will be fixed at a later time.
Thanks to @RadianFord and @Lemongrass3110!
This commit is contained in:
Aleos
2018-09-28 13:57:27 -04:00
committed by GitHub
parent b7ba7fe5a6
commit 926e37cb65
7 changed files with 22 additions and 21 deletions

View File

@@ -632,8 +632,8 @@ static int grfio_entryread(const char* grfname, int gentry)
static bool grfio_parse_restable_row(const char* row)
{
char w1[256], w2[256];
char src[256], dst[256];
char local[256];
char src[512], dst[512];
char local[512];
FILELIST* entry;
if( sscanf(row, "%255[^#\r\n]#%255[^#\r\n]#", w1, w2) != 2 )