kopia lustrzana https://gitlab.com/sane-project/backends
Replace index() with strchr(). Bug #313563.
rodzic
d897992226
commit
66fb96d9ad
|
@ -1,3 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue