diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index f6438f2710aa81d5aaf663ff5f8df1d9b93a8aea..82a21eb2f333e02a3c8881c5d07ddd9ae2777e6c 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
strip (procargs);
/* Some ps return full pathname for command. This removes path */
- procprog = basename(procprog);
+ procprog = base_name(procprog);
/* we need to convert the elapsed time to seconds */
procseconds = convert_to_seconds(procetime);