Index: trunk/sql_init/samhain.mysql.init
===================================================================
--- trunk/sql_init/samhain.mysql.init	(revision 295)
+++ trunk/sql_init/samhain.mysql.init	(revision 296)
@@ -33,5 +33,5 @@
   	return_code   INTEGER,
   	syscall       VARCHAR(16),
-  	ip            VARCHAR(16),
+  	ip            VARCHAR(46),
   	tty           VARCHAR(16),
         peer          VARCHAR(64),
Index: trunk/sql_init/samhain.oracle.init
===================================================================
--- trunk/sql_init/samhain.oracle.init	(revision 295)
+++ trunk/sql_init/samhain.oracle.init	(revision 296)
@@ -24,5 +24,5 @@
         return_code   INTEGER,
         syscall       VARCHAR2(16),
-        ip            VARCHAR2(16),
+        ip            VARCHAR2(46),
         tty           VARCHAR2(16),
         peer          VARCHAR2(64),
Index: trunk/sql_init/samhain.postgres.init
===================================================================
--- trunk/sql_init/samhain.postgres.init	(revision 295)
+++ trunk/sql_init/samhain.postgres.init	(revision 296)
@@ -27,5 +27,5 @@
   	return_code   INTEGER,
   	syscall       VARCHAR(16),
-  	ip            VARCHAR(16),
+  	ip            VARCHAR(46),
   	tty           VARCHAR(16),
         peer          VARCHAR(64),
Index: trunk/src/sh_database.c
===================================================================
--- trunk/src/sh_database.c	(revision 295)
+++ trunk/src/sh_database.c	(revision 296)
@@ -75,5 +75,5 @@
   char            module[8];
   char            syscall[16];
-  char            ip[16];     
+  char            ip[SH_IP_BUF];     
   char            tty[16];    
   char            peer[64];
@@ -149,5 +149,5 @@
   { NULL, N_("module"),      0,  17,    8, 0, offsetof(struct dbins_, module)  },
   { NULL, N_("syscall"),     0,  19,   16, 0, offsetof(struct dbins_, syscall)  },
-  { NULL, N_("ip"),          0,  20,   16, 0, offsetof(struct dbins_, ip)  },
+  { NULL, N_("ip"),          0,  20,SH_IP_BUF, 0, offsetof(struct dbins_, ip)  },
   { NULL, N_("tty"),         0,  21,   16, 0, offsetof(struct dbins_, tty)  },
   { NULL, N_("peer"),        0,  22,   64, 0, offsetof(struct dbins_, peer)  },
