summaryrefslogtreecommitdiff
path: root/src/data.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-08-06 12:59:04 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-08-06 12:59:04 -0700
commit6e003fd5f174a8e312d799d7f8812c2a5b87e433 (patch)
treefe1162855d4269bf70e4b8f7b6e79f5610b53586 /src/data.c
parent43dfc6be8128139888426d8c709aa78efc207953 (diff)
Replace index/rindex with C89 standard strchr/strrchr
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index d0b86ee..87f4b3f 100644
--- a/src/data.c
+++ b/src/data.c
@@ -422,7 +422,7 @@ xpmParseHeader(data)
if (!l)
return (XpmFileInvalid);
buf[l] = '\0';
- ptr = rindex(buf, '_');
+ ptr = strrchr(buf, '_');
if (!ptr || strncmp("_format", ptr, l - (ptr - buf)))
return XpmFileInvalid;
/* this is definitely an XPM 1 file */