diff options
Diffstat (limited to 'other/pamx/window.c')
-rw-r--r-- | other/pamx/window.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/other/pamx/window.c b/other/pamx/window.c index 29f85d92..ec2a77fe 100644 --- a/other/pamx/window.c +++ b/other/pamx/window.c @@ -499,10 +499,10 @@ iconName(const char * const s) { char * t; STRSCPY(buf, s); - /* strip off stuff following 1st word. This strips + /* chop off stuff following 1st word. This strips info added by processing functions too. */ - t = index(buf, ' '); + t = strchr(buf, ' '); if (t) *t = '\0'; @@ -510,15 +510,15 @@ iconName(const char * const s) { You might want to change this. */ - t= rindex(buf, '/'); + t= strrchr(buf, '/'); if (t) { char * p; for (p = buf, ++t; *t; ++p, ++t) *p = *t; *p = '\0'; } - /* look for an extension and strip it off */ - t = index(buf, '.'); + /* Chop off any filename extension */ + t = strchr(buf, '.'); if (t) *t = '\0'; } |