diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-09-13 13:51:46 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-09-13 13:51:46 +0000 |
| commit | 3d7d38401588a2a06f71fab94ab1beaa17bdf309 (patch) | |
| tree | f57a648242abd61eebaa5dc4148a3a6a4fd12e02 /src/libs/zbxsysinfo/common/common.c | |
| parent | 8ca8c03346090ece96b4c4b3da5fe2d41b04eb3e (diff) | |
| download | zabbix-3d7d38401588a2a06f71fab94ab1beaa17bdf309.tar.gz zabbix-3d7d38401588a2a06f71fab94ab1beaa17bdf309.tar.xz zabbix-3d7d38401588a2a06f71fab94ab1beaa17bdf309.zip | |
added incorrect defines to generate error if 'snprintf' and 'sprintf' functions are used (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3300 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo/common/common.c')
| -rw-r--r-- | src/libs/zbxsysinfo/common/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxsysinfo/common/common.c b/src/libs/zbxsysinfo/common/common.c index fe70e32f..fc9baf4e 100644 --- a/src/libs/zbxsysinfo/common/common.c +++ b/src/libs/zbxsysinfo/common/common.c @@ -505,7 +505,7 @@ int process(const char *in_command, unsigned flags, AGENT_RESULT *result) } else { - snprintf(param, MAX_STRING_LEN, "%s", commands[i].main_param); + zbx_snprintf(param, sizeof(param), "%s", commands[i].main_param); } } else |
