scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit be5af009b81e52520a310c823d9d60313a26a563
parent 6c2a74664485bac7db77609a1777c9c8143fd54f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 30 Aug 2019 11:25:41 +0100

[libmach/coff32] Fix return code of readstr()

The condition was inverted.

Diffstat:
Msrc/libmach/coff32/coff32read.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libmach/coff32/coff32read.c b/src/libmach/coff32/coff32read.c @@ -165,7 +165,7 @@ readstr(Obj *obj, FILE *fp) coff->strtbl = str; coff->strsiz = siz; - return fread(str+4, siz-4, 1, fp) != 1; + return fread(str+4, siz-4, 1, fp) == 1; } static int