diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-04 13:42:05 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-04 13:42:05 +0000 |
| commit | cfd349700644259c40f993f0f33e4fd8ae2ebace (patch) | |
| tree | 2a897e17c739360c51f811e9ccde5f0aa4e172f5 /src | |
| parent | 11e8b161916078d13ad2ee5bc8636ae7fe56bab4 (diff) | |
| download | zabbix-cfd349700644259c40f993f0f33e4fd8ae2ebace.tar.gz zabbix-cfd349700644259c40f993f0f33e4fd8ae2ebace.tar.xz zabbix-cfd349700644259c40f993f0f33e4fd8ae2ebace.zip | |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2101 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
| -rw-r--r-- | src/libs/zbxdbhigh/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c index de0ddb3b..51175c3f 100644 --- a/src/libs/zbxdbhigh/host.c +++ b/src/libs/zbxdbhigh/host.c @@ -34,7 +34,7 @@ int DBadd_new_host(char *server, int port, int status, int useip, char *ip, int char sql[MAX_STRING_LEN]; int hostid; - snprintf(sql, sizeof(sql)-1,"insert into hosts (host,port,status,useip,ip,disable_until,available) values ('%s',%d,%d,useip,'%d',%d,%d)", server, port, status, useip, ip, disable_until, available); + snprintf(sql, sizeof(sql)-1,"insert into hosts (host,port,status,useip,ip,disable_until,available) values ('%s',%d,%d,%d,'%d',%d,%d)", server, port, status, useip, ip, disable_until, available); if(FAIL == DBexecute(sql)) { return FAIL; |
