1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/x11-fm/xfm/files/patch-ab
Steve Price 21704cd524 strtol -> strtoul so the 'magic' file is parsed correctly.
PR:		7535
Submitted by:	Sergey Shkonda <serg@bcs.zp.ua>
1998-08-10 00:03:14 +00:00

12 lines
323 B
Plaintext

--- src/magic.c.orig Sun Aug 9 13:47:06 1998
+++ src/magic.c Sun Aug 9 13:47:18 1998
@@ -227,7 +227,7 @@
default:
mtypes[count].flags |= M_EQ;
}
- mtypes[count].value.number = strtol(cptr, &cptr, 0);
+ mtypes[count].value.number = strtoul(cptr, &cptr, 0);
}
while(isspace(*cptr))
cptr++;