]> granicus.if.org Git - postgresql/commitdiff
Have pg_upgrade use strtoul(), not strtol().
authorBruce Momjian <bruce@momjian.us>
Wed, 29 Sep 2010 02:40:26 +0000 (02:40 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 29 Sep 2010 02:40:26 +0000 (02:40 +0000)
contrib/pg_upgrade/util.c

index 8ee39be03ed6c9d44b8d42995bbaeb38f0f72954..52b81c200b3b2e08deb5d1c0d26ef29140bdf357 100644 (file)
@@ -269,5 +269,5 @@ getErrorText(int errNum)
 unsigned int
 str2uint(const char *str)
 {
-       return strtol(str, NULL, 10);
+       return strtoul(str, NULL, 10);
 }