From 0977111ae87dd23e8c95ba9e9744878f9ce230f7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 13 Nov 2012 13:05:11 +0100 Subject: [PATCH] Fixing users of --- src/engines/pgsql.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engines/pgsql.c b/src/engines/pgsql.c index 007a655..6eaaa89 100644 --- a/src/engines/pgsql.c +++ b/src/engines/pgsql.c @@ -200,14 +200,13 @@ static void _prepare_new_adapt(char * query) char * p; int j; size_t len; - int c; /* FIXME this only works for up to 9 arguments */ for(i = 0; (p = strchr(query, ':')) != NULL; i++) { *(p++) = '$'; *(p++) = '1' + i; - for(j = 0; isalpha((c = p[j])) || p[j] == '_'; j++); + for(j = 0; isalpha((unsigned char)p[j]) || p[j] == '_'; j++); len = strlen(p) + 1; memmove(p, &p[j], len - j); }