| author | Rolf Bensch <roben-guest@alioth.debian.org> | |
| Tue, 6 Mar 2012 10:10:44 +0000 (11:10 +0100) | ||
| committer | Rolf Bensch <roben-guest@alioth.debian.org> | |
| Tue, 6 Mar 2012 10:10:44 +0000 (11:10 +0100) |
| ChangeLog | patch | blob | history | |
| backend/pixma_bjnp.c | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
+2012-03-06 Rolf Bensch <rolf at bensch hyphen online dot de>
+ * backend/pixma_bjnp.c: Replace index() with strchr(). Bug #313563.
+
2012-02-29 Rolf Bensch <rolf at bensch hyphen online dot de>
* 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
--- a/backend/pixma_bjnp.c
+++ b/backend/pixma_bjnp.c
{
/* 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;
