diff options
| -rw-r--r-- | THANKS.in | 1 | ||||
| -rw-r--r-- | plugins/check_procs.c | 2 |
2 files changed, 2 insertions, 1 deletions
| @@ -205,3 +205,4 @@ Duncan Ferguson | |||
| 205 | Dick van den Burg | 205 | Dick van den Burg |
| 206 | Matthias Eble | 206 | Matthias Eble |
| 207 | Sebastian Schubert | 207 | Sebastian Schubert |
| 208 | Jason Hoos | ||
diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 2c8c3791..87f00243 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c | |||
| @@ -193,7 +193,7 @@ main (int argc, char **argv) | |||
| 193 | strip (procargs); | 193 | strip (procargs); |
| 194 | 194 | ||
| 195 | /* Some ps return full pathname for command. This removes path */ | 195 | /* Some ps return full pathname for command. This removes path */ |
| 196 | procprog = base_name(procprog); | 196 | strcpy(procprog, base_name(procprog)); |
| 197 | 197 | ||
| 198 | /* we need to convert the elapsed time to seconds */ | 198 | /* we need to convert the elapsed time to seconds */ |
| 199 | procseconds = convert_to_seconds(procetime); | 199 | procseconds = convert_to_seconds(procetime); |
