2005-02-15 [colin] 1.0.1cvs7.1
[claws.git] / src / compose.c
index 70b5e108b952e2eb8d491b7691d7513382962e2b..07a9a15a87352f1feac663e08c80a873fcd24aa9 100644 (file)
@@ -3644,7 +3644,7 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action)
        g_free(chars);
 
        if (encoding == ENC_8BIT || encoding == ENC_7BIT) {
-               if (!strncmp(buf, "From ", strlen("From ")) ||
+               if (!strncmp(buf, "From ", sizeof("From ")-1) ||
                    strstr(buf, "\nFrom ") != NULL) {
                        encoding = ENC_QUOTED_PRINTABLE;
                }