diff options
Diffstat (limited to 'src/mod_mysql_vhost.c')
-rw-r--r-- | src/mod_mysql_vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_mysql_vhost.c b/src/mod_mysql_vhost.c index 65e7ce9..fe2b67f 100644 --- a/src/mod_mysql_vhost.c +++ b/src/mod_mysql_vhost.c @@ -222,7 +222,7 @@ SERVER_FUNC(mod_mysql_vhost_set_defaults) { s->mysql_pre = buffer_init(); s->mysql_post = buffer_init(); - if (sel->used && (qmark = index(sel->ptr, '?'))) { + if (sel->used && (qmark = strchr(sel->ptr, '?'))) { *qmark = '\0'; buffer_copy_string(s->mysql_pre, sel->ptr); buffer_copy_string(s->mysql_post, qmark+1); |