diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-08-06 12:59:04 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-08-06 12:59:04 -0700 |
commit | 6e003fd5f174a8e312d799d7f8812c2a5b87e433 (patch) | |
tree | fe1162855d4269bf70e4b8f7b6e79f5610b53586 /src/data.c | |
parent | 43dfc6be8128139888426d8c709aa78efc207953 (diff) |
Replace index/rindex with C89 standard strchr/strrchr
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |