From 66fb96d9ad04a901824a0ab14269b525fbbbf7c4 Mon Sep 17 00:00:00 2001 From: Rolf Bensch Date: Tue, 6 Mar 2012 11:10:44 +0100 Subject: [PATCH] Replace index() with strchr(). Bug #313563. --- ChangeLog | 3 +++ backend/pixma_bjnp.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b80c6d508..daa04ed8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2012-03-06 Rolf Bensch + * backend/pixma_bjnp.c: Replace index() with strchr(). Bug #313563. + 2012-02-29 Rolf Bensch * backend/pixma.[ch], backend/pixma_common.c, backend/pixma_sane_options.[ch]: New device specific option diff --git a/backend/pixma_bjnp.c b/backend/pixma_bjnp.c index a97aad269..6e045d0cd 100644 --- a/backend/pixma_bjnp.c +++ b/backend/pixma_bjnp.c @@ -196,7 +196,7 @@ truncate_hostname (char *hostname, char *short_hostname) { /* this is a hostname, not an ip-address, so remove domain part of the name */ - if ((dot = index (short_hostname, '.')) != NULL) + if ((dot = strchr (short_hostname, '.')) != NULL) *dot = '\0'; } return short_hostname;