[COMPILE WARN/ERROR] String overflow error in pc.c
Posted: Mon 04 Jun, 2018 5:39 am
My compiler (Mingw-w64 w/ GCC 7.1) has thrown up a string overflow error in the initpc function of pc.c.
The problem occurs here:
The root cause is in ibm.h here:
I have fixed it in my local environment, but I don't particularly want to commit this change when I'm about to commit a completely different change (and have the patch based directly from v14). Also, it's so trivial, it's not worth me submitting a patch IMHO.
The problem occurs here:
Code: Select all
strncpy(discfns[0], argv[c+1], 260);
Code: Select all
char discfns[2][256];