diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/mpstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/mpstat.c b/procps/mpstat.c index 3e07edc5c..883c4d52d 100644 --- a/procps/mpstat.c +++ b/procps/mpstat.c | |||
@@ -923,7 +923,7 @@ int mpstat_main(int argc UNUSED_PARAM, char **argv) | |||
923 | char *t; | 923 | char *t; |
924 | G.p_option = 1; | 924 | G.p_option = 1; |
925 | 925 | ||
926 | for (t = strtok(opt_set_cpu, ","); t; t = strtok(NULL, ",")) { | 926 | for (t = strtok_r(opt_set_cpu, ",", &opt_set_cpu); t; t = strtok_r(NULL, ",", &opt_set_cpu)) { |
927 | if (strcmp(t, "ALL") == 0) { | 927 | if (strcmp(t, "ALL") == 0) { |
928 | /* Select every CPU */ | 928 | /* Select every CPU */ |
929 | memset(G.cpu_bitmap, 0xff, G.cpu_bitmap_len); | 929 | memset(G.cpu_bitmap, 0xff, G.cpu_bitmap_len); |