Mercurial > 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 wrap: on
line diff
--- a/src/spool.c Wed Oct 29 21:21:26 2008 +0100 +++ b/src/spool.c Thu Nov 06 09:18:38 2008 +0100 @@ -16,8 +16,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <sys/stat.h> + #include "masqmail.h" -#include <sys/stat.h> #include "dotlock.h" static gint @@ -39,7 +40,7 @@ if ((p > 0) && (buf[p - 1] == '\r')) p--; buf[p++] = '\n'; - buf[p] = 0; + buf[p] = '\0'; return p; } @@ -68,7 +69,7 @@ { address *rcpt = NULL; - if (line[3] != 0) { + if (line[3] != '\0') { if (line[4] != '|') { rcpt = create_address(&(line[4]), TRUE); } else {