Code

email plugin: Cast a `size_t' to `unsigned long' to make format checking happy.
authorFlorian Forster <sifnfors@informatik.stud.uni-erlangen.de>
Thu, 12 Jun 2008 09:35:39 +0000 (11:35 +0200)
committerFlorian Forster <sifnfors@informatik.stud.uni-erlangen.de>
Thu, 12 Jun 2008 09:35:39 +0000 (11:35 +0200)
src/email.c

index 9b82e10eee8fb6dc808bd5861bac5e08410bb2bc..bcdb3577566110bd3cf6fbaf8455f84fe5ef97e1 100644 (file)
@@ -293,7 +293,8 @@ static void *collect (void *arg)
                        len = strlen (line);
                        if (('\n' != line[len - 1]) && ('\r' != line[len - 1])) {
                                log_warn ("[thread #%5lu] line too long (> %lu characters): "
-                                               "'%s' (truncated)", self, sizeof (line) - 1, line);
+                                               "'%s' (truncated)",
+                                               self, (unsigned long) (sizeof (line) - 1), line);
 
                                while (NULL != fgets (line, sizeof (line), this->socket))
                                        if (('\n' == line[len - 1]) || ('\r' == line[len - 1]))