--- hatari/src/uae-cpu/build68k.c 2019/04/01 07:13:48 1.1.1.5 +++ hatari/src/uae-cpu/build68k.c 2019/04/09 08:53:27 1.1.1.9 @@ -7,10 +7,10 @@ * * Adaptation to Hatari by Thomas Huth * - * This file is distributed under the GNU Public License, version 2 or at - * your option any later version. Read the file gpl.txt for details. + * This file is distributed under the GNU General Public License, version 2 + * or at your option any later version. Read the file gpl.txt for details. */ -const char Build68k_rcsid[] = "Hatari $Id: build68k.c,v 1.1.1.5 2019/04/01 07:13:48 root Exp $"; +const char Build68k_fileid[] = "Hatari build68k.c : " __DATE__ " " __TIME__; #include #include @@ -80,7 +80,6 @@ int main(int argc, char **argv) int cpulevel, plevel, sduse; int i; - char patbits[16]; char opcstr[256]; int bitpos[16]; int flagset[5], flaguse[5]; @@ -127,7 +126,6 @@ int main(int argc, char **argv) bitmask |= 1; if (nextch == '1') bitpattern |= 1; - patbits[i] = nextch; getnextch(); } @@ -210,7 +208,11 @@ int main(int argc, char **argv) if (nextch != ':') abort(); - fgets(opcstr, 250, tablef); + if (fgets(opcstr, 250, tablef) == NULL) { + perror("fgets"); + return -1; + } + getnextch(); { int j;