windows-fs-utils-20080207
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 21:40:08 +0000 (21:40 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 21:40:08 +0000 (21:40 +0000)
LICENSE MIT

Use ismeta() correctly when parsing integer strings.

src/WINNT/afsd/fs_utils.c

index 70ed624..cc19bf1 100644 (file)
@@ -175,7 +175,7 @@ afs_int32 util_GetInt32 (char *as, afs_int32 *aval)
 
     /* compute the # itself */
     while(tc = *as) {
-       if (!ismeta(tc, base)) return -1;
+       if (!ismeta(base, tc)) return -1;
        total *= base;
        total += getmeta(tc);
        as++;