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 diff
1.1 --- a/src/accept.c Wed Oct 29 21:10:18 2008 +0100 1.2 +++ b/src/accept.c Wed Oct 29 21:21:26 2008 +0100 1.3 @@ -34,7 +34,7 @@ 1.4 { 1.5 static gchar base62_chars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; 1.6 gchar *p = res + len; 1.7 - *p = 0; 1.8 + *p = '\0'; 1.9 while (p > res) { 1.10 *(--p) = base62_chars[value % 62]; 1.11 value /= 62; 1.12 @@ -73,7 +73,7 @@ 1.13 gint line_cnt = 0, data_size = 0; 1.14 1.15 line = g_malloc(line_size); 1.16 - line[0] = 0; 1.17 + line[0] = '\0'; 1.18 1.19 while (TRUE) { 1.20 int len = read_sockline1(in, &line, &line_size, 5 * 60, READSOCKL_CVT_CRLF); 1.21 @@ -95,7 +95,7 @@ 1.22 if (len1 > 0) { /* == 0 is 'normal' (EOF after a CR) */ 1.23 if (line1[len1 - 1] != '\n') { /* some mail clients allow unterminated lines */ 1.24 line1[len1] = '\n'; 1.25 - line1[len1 + 1] = 0; 1.26 + line1[len1 + 1] = '\0'; 1.27 msg->data_list = g_list_prepend(msg->data_list, g_strdup(line1)); 1.28 data_size += strlen(line1); 1.29 line_cnt++;