Mercurial > masqmail-0.2
diff src/accept.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 | 49dab67fe461 |
children | 7c1635972aa7 |
line wrap: on
line diff
--- a/src/accept.c Wed Oct 29 21:10:18 2008 +0100 +++ b/src/accept.c Wed Oct 29 21:21:26 2008 +0100 @@ -34,7 +34,7 @@ { static gchar base62_chars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; gchar *p = res + len; - *p = 0; + *p = '\0'; while (p > res) { *(--p) = base62_chars[value % 62]; value /= 62; @@ -73,7 +73,7 @@ gint line_cnt = 0, data_size = 0; line = g_malloc(line_size); - line[0] = 0; + line[0] = '\0'; while (TRUE) { int len = read_sockline1(in, &line, &line_size, 5 * 60, READSOCKL_CVT_CRLF); @@ -95,7 +95,7 @@ if (len1 > 0) { /* == 0 is 'normal' (EOF after a CR) */ if (line1[len1 - 1] != '\n') { /* some mail clients allow unterminated lines */ line1[len1] = '\n'; - line1[len1 + 1] = 0; + line1[len1 + 1] = '\0'; msg->data_list = g_list_prepend(msg->data_list, g_strdup(line1)); data_size += strlen(line1); line_cnt++;