masqmail

diff src/spool.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 0267fe9745d5
line diff
     1.1 --- a/src/spool.c	Wed Oct 29 21:21:26 2008 +0100
     1.2 +++ b/src/spool.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 <sys/stat.h>
     1.8 +
     1.9  #include "masqmail.h"
    1.10 -#include <sys/stat.h>
    1.11  #include "dotlock.h"
    1.12  
    1.13  static gint
    1.14 @@ -39,7 +40,7 @@
    1.15  	if ((p > 0) && (buf[p - 1] == '\r'))
    1.16  		p--;
    1.17  	buf[p++] = '\n';
    1.18 -	buf[p] = 0;
    1.19 +	buf[p] = '\0';
    1.20  
    1.21  	return p;
    1.22  }
    1.23 @@ -68,7 +69,7 @@
    1.24  {
    1.25  	address *rcpt = NULL;
    1.26  
    1.27 -	if (line[3] != 0) {
    1.28 +	if (line[3] != '\0') {
    1.29  		if (line[4] != '|') {
    1.30  			rcpt = create_address(&(line[4]), TRUE);
    1.31  		} else {