From: Tom Lane Date: Thu, 17 Apr 2025 20:33:21 +0000 (-0400) Subject: Portability fix: isdigit() must be passed an unsigned char. X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=4aad2cb7707dfb239eaaad29a8a7155027d8e8b8;p=users%2Frhaas%2Fpostgres.git Portability fix: isdigit() must be passed an unsigned char. Oversight in commit 40b9c2701, per buildfarm member mamba. --- diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index c799ae91b3..72916199e1 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -1073,7 +1073,7 @@ get_dbname_oid_list_from_mfile(const char *dumpdirpath, SimplePtrList *dbname_oi char *p = linebuf.data; /* Extract dboid. */ - while (isdigit(*p)) + while (isdigit((unsigned char) *p)) p++; if (p > linebuf.data && *p == ' ') {