Fixing users of <ctype.h>
This commit is contained in:
parent
de19906181
commit
0977111ae8
|
@ -200,14 +200,13 @@ static void _prepare_new_adapt(char * query)
|
||||||
char * p;
|
char * p;
|
||||||
int j;
|
int j;
|
||||||
size_t len;
|
size_t len;
|
||||||
int c;
|
|
||||||
|
|
||||||
/* FIXME this only works for up to 9 arguments */
|
/* FIXME this only works for up to 9 arguments */
|
||||||
for(i = 0; (p = strchr(query, ':')) != NULL; i++)
|
for(i = 0; (p = strchr(query, ':')) != NULL; i++)
|
||||||
{
|
{
|
||||||
*(p++) = '$';
|
*(p++) = '$';
|
||||||
*(p++) = '1' + i;
|
*(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;
|
len = strlen(p) + 1;
|
||||||
memmove(p, &p[j], len - j);
|
memmove(p, &p[j], len - j);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user