summaryrefslogtreecommitdiff
path: root/sysutils/xfm/patches/patch-ad
blob: a82a2a3feb0448a8fea9c941742f105df10373d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ad,v 1.1.1.1 2002/06/04 16:44:55 cjep Exp $

--- src/magic.c.orig	Wed Aug  2 13:21:00 2000
+++ src/magic.c	Wed Aug  2 13:21:26 2000
@@ -234,7 +234,7 @@
 	    default:
 		mtypes[count].flags |= M_EQ;
 	    }
-	    mtypes[count].value.number = strtol(cptr, &cptr, 0) & vmask;
+	    mtypes[count].value.number = strtoul(cptr, &cptr, 0) & vmask;
 	}
 	while(isspace(*cptr))
 	    cptr++;