Browse Source

use strchr() instead of index() as it is POSIX

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1994 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.18
Jan Kneschke 15 years ago
parent
commit
46e1ca19cc
  1. 2
      src/mod_mysql_vhost.c

2
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);

Loading…
Cancel
Save