diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-01-17 05:28:22 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-01-17 05:28:22 +0000 |
commit | e4af02e9ddec21d6ea2c8399b7c5d9d9c1e6e8e8 (patch) | |
tree | c268bdf7cd8632de844c536624d526a70cf71e83 /plugins/check_procs.c | |
parent | 4734e245f0675411da64b5627b58bef10d9f1129 (diff) | |
download | monitoring-plugins-e4af02e9ddec21d6ea2c8399b7c5d9d9c1e6e8e8.tar.gz |
Fix bug #1630970 Fix for buffer overflow of check_procs procprog string
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1566 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r-- | plugins/check_procs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) strip (procargs); /* Some ps return full pathname for command. This removes path */ - procprog = base_name(procprog); + strcpy(procprog, base_name(procprog)); /* we need to convert the elapsed time to seconds */ procseconds = convert_to_seconds(procetime); |