masqmail-0.2

diff src/tables.c @ 15:f671821d8222

code beautifying; 0 -> \0 if appropriate
author meillo@marmaro.de
date Thu, 06 Nov 2008 09:18:38 +0100
parents 26e34ae9a3e3
children 6c59dedd06be
line diff
     1.1 --- a/src/tables.c	Wed Oct 29 21:21:26 2008 +0100
     1.2 +++ b/src/tables.c	Thu Nov 06 09:18:38 2008 +0100
     1.3 @@ -16,8 +16,9 @@
     1.4      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     1.5  */
     1.6  
     1.7 +#include <fnmatch.h>
     1.8 +
     1.9  #include "masqmail.h"
    1.10 -#include <fnmatch.h>
    1.11  
    1.12  table_pair*
    1.13  create_pair(gchar * key, gpointer value)
    1.14 @@ -52,9 +53,9 @@
    1.15  
    1.16  	p = line;
    1.17  	q = buf;
    1.18 -	while ((*p != 0) && (*p != delim) && q < buf + 255)
    1.19 +	while ((*p != '\0') && (*p != delim) && q < buf + 255)
    1.20  		*(q++) = *(p++);
    1.21 -	*q = 0;
    1.22 +	*q = '\0';
    1.23  
    1.24  	pair = g_malloc(sizeof(table_pair));
    1.25  	pair->key = g_strdup(g_strstrip(buf));