diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2010-12-30 14:39:32 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2010-12-30 14:39:32 +0000 |
commit | 28596e39f3e29fc3043ace71cfb363b2146c0ff4 (patch) | |
tree | b152a88f5d47e3b3f90f004ef5a7ad21d3db34b7 | |
parent | 5cd3ca63af76a3a70d273c3352fbb6ee857366dd (diff) | |
download | lighttpd-28596e39f3e29fc3043ace71cfb363b2146c0ff4.tar.gz |
[mod_postgresql_vhost] replace index() with strchr()
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2775 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/mod_postgresql_vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_postgresql_vhost.c b/src/mod_postgresql_vhost.c index 1edd59f2..2e0f4a7f 100644 --- a/src/mod_postgresql_vhost.c +++ b/src/mod_postgresql_vhost.c @@ -147,7 +147,7 @@ SERVER_FUNC(mod_postgresql_vhost_set_defaults) { sel = buffer_init(); buffer_copy_string_buffer(sel, s->core->select_vhost); - if (sel->used && (qmark = index(sel->ptr, '?'))) { + if (sel->used && (qmark = strchr(sel->ptr, '?'))) { *qmark = '\0'; buffer_copy_string(s->postgresql_pre, sel->ptr); buffer_copy_string(s->postgresql_post, qmark+1); |