Mercurial > masqmail
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 wrap: on
line diff
--- a/src/tables.c Wed Oct 29 21:21:26 2008 +0100 +++ b/src/tables.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 <fnmatch.h> + #include "masqmail.h" -#include <fnmatch.h> table_pair* create_pair(gchar * key, gpointer value) @@ -52,9 +53,9 @@ p = line; q = buf; - while ((*p != 0) && (*p != delim) && q < buf + 255) + while ((*p != '\0') && (*p != delim) && q < buf + 255) *(q++) = *(p++); - *q = 0; + *q = '\0'; pair = g_malloc(sizeof(table_pair)); pair->key = g_strdup(g_strstrip(buf));