diff options
Diffstat (limited to 'usr.bin/systat/devs.c')
-rw-r--r-- | usr.bin/systat/devs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/devs.c b/usr.bin/systat/devs.c index 09a1838..3c74fb7 100644 --- a/usr.bin/systat/devs.c +++ b/usr.bin/systat/devs.c @@ -265,7 +265,7 @@ dsselect(const char *args, devstat_select_mode select_mode, int maxshowdevs, specified_devices = (char **)malloc(sizeof(char *)); tmpstr = tmpstr1 = strdup(args); - cp = index(tmpstr1, '\n'); + cp = strchr(tmpstr1, '\n'); if (cp) *cp = '\0'; for (;;) { |