masqmail-0.2

diff src/alias.c @ 14:a8f3424347dc

replaced number 0 with character \0 where appropriate
author meillo@marmaro.de
date Wed, 29 Oct 2008 21:21:26 +0100
parents 26e34ae9a3e3
children a80ebfa16cd5
line diff
     1.1 --- a/src/alias.c	Wed Oct 29 21:10:18 2008 +0100
     1.2 +++ b/src/alias.c	Wed Oct 29 21:21:26 2008 +0100
     1.3 @@ -67,14 +67,14 @@
     1.4  	gchar *p, *q;
     1.5  
     1.6  	p = line;
     1.7 -	while (*p != 0) {
     1.8 +	while (*p != '\0') {
     1.9  		q = buf;
    1.10  		while (isspace(*p))
    1.11  			p++;
    1.12  		if (*p != '\"') {
    1.13  			while (*p && (*p != ',') && (q < buf + 255))
    1.14  				*(q++) = *(p++);
    1.15 -			*q = 0;
    1.16 +			*q = '\0';
    1.17  		} else {
    1.18  			gboolean escape = FALSE;
    1.19  			p++;
    1.20 @@ -87,7 +87,7 @@
    1.21  				}
    1.22  				p++;
    1.23  			}
    1.24 -			*q = 0;
    1.25 +			*q = '\0';
    1.26  			while (*p && (*p != ','))
    1.27  				p++;
    1.28  		}