aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/xfm/files
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-08-10 08:03:14 +0800
committersteve <steve@FreeBSD.org>1998-08-10 08:03:14 +0800
commit00b904f342d67de27565371a7c82c357fe979de0 (patch)
tree14b572f7d8c82f5ca575f52e14a957bfb395a179 /x11-fm/xfm/files
parentde585562e005028f82fb1314bf0224c838947c5d (diff)
downloadfreebsd-ports-graphics-00b904f342d67de27565371a7c82c357fe979de0.tar.gz
freebsd-ports-graphics-00b904f342d67de27565371a7c82c357fe979de0.tar.zst
freebsd-ports-graphics-00b904f342d67de27565371a7c82c357fe979de0.zip
strtol -> strtoul so the 'magic' file is parsed correctly.
PR: 7535 Submitted by: Sergey Shkonda <serg@bcs.zp.ua>
Diffstat (limited to 'x11-fm/xfm/files')
-rw-r--r--x11-fm/xfm/files/patch-ab11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-fm/xfm/files/patch-ab b/x11-fm/xfm/files/patch-ab
new file mode 100644
index 00000000000..c0fdb1311d5
--- /dev/null
+++ b/x11-fm/xfm/files/patch-ab
@@ -0,0 +1,11 @@
+--- 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++;