head 1.2; access; symbols pkgsrc-2018Q3:1.1.0.18 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.16 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.14 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.12 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.10 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.6 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.4 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.2 pkgsrc-2016Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2018.12.18.17.08.21; author nia; state dead; branches; next 1.1; commitid unaRLdxVdej3Ri4B; 1.1 date 2016.12.17.14.24.37; author joerg; state Exp; branches; next ; commitid 3sHyV3SZCsGhslyz; desc @@ 1.2 log @emulators/mednafen: Update to 1.21.3. Package's changelog does not go that far back. @ text @$NetBSD: patch-src_mempatcher.cpp,v 1.1 2016/12/17 14:24:37 joerg Exp $ --- src/mempatcher.cpp.orig 2016-12-15 14:21:04.855680936 +0000 +++ src/mempatcher.cpp @@@@ -191,7 +191,7 @@@@ static bool SeekToOurSection(FILE *fp) / { char buf[2048]; - while(fgets(buf,2048,fp) > 0) + while(fgets(buf,2048,fp)) { if(buf[0] == '[') { @@@@ -243,7 +243,7 @@@@ void MDFN_LoadGameCheats(FILE *override) if(SeekToOurSection(fp)) { - while(fgets(linebuf,2048,fp) > 0) + while(fgets(linebuf,2048,fp)) { char namebuf[2048]; char *tbuf=linebuf; @@@@ -382,7 +382,7 @@@@ void MDFN_FlushGameCheats(int nosave) { FILE *tmp_fp = fopen(tmp_fn.c_str(), "wb"); - while(fgets((char*)linebuf, 2048, fp) > 0) + while(fgets((char*)linebuf, 2048, fp)) { if(linebuf[0] == '[' && !insection) { @ 1.1 log @Don't order pointers relative to 0, check for NULLness. @ text @d1 1 a1 1 $NetBSD$ @