Skip to content

Commit fe61db6

Browse files
committed
Have pg_upgrade use strtoul(), not strtol().
1 parent 807005c commit fe61db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,5 +269,5 @@ getErrorText(int errNum)
269269
unsigned int
270270
str2uint(const char *str)
271271
{
272-
return strtol(str, NULL, 10);
272+
return strtoul(str, NULL, 10);
273273
}

0 commit comments

Comments
 (0)