Ignore:
Timestamp:
Oct 31, 2010, 10:47:19 AM (14 years ago)
Author:
katerina
Message:

Fix sizes for logging IPv6 address to database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_database.c

    r226 r296  
    7575  char            module[8];
    7676  char            syscall[16];
    77   char            ip[16];     
     77  char            ip[SH_IP_BUF];     
    7878  char            tty[16];   
    7979  char            peer[64];
     
    149149  { NULL, N_("module"),      0,  17,    8, 0, offsetof(struct dbins_, module)  },
    150150  { NULL, N_("syscall"),     0,  19,   16, 0, offsetof(struct dbins_, syscall)  },
    151   { NULL, N_("ip"),          0,  20,   16, 0, offsetof(struct dbins_, ip)  },
     151  { NULL, N_("ip"),          0,  20,SH_IP_BUF, 0, offsetof(struct dbins_, ip)  },
    152152  { NULL, N_("tty"),         0,  21,   16, 0, offsetof(struct dbins_, tty)  },
    153153  { NULL, N_("peer"),        0,  22,   64, 0, offsetof(struct dbins_, peer)  },
Note: See TracChangeset for help on using the changeset viewer.