2005-02-15 [colin] 1.0.1cvs7.1
[claws.git] / src / procmime.c
index a4267d7438569f08f60d56044159a72e2b7de780..3067893297628bb0508b6900028236494a10a0a2 100644 (file)
@@ -478,10 +478,10 @@ gboolean procmime_encode_content(MimeInfo *mimeinfo, EncodingType encoding)
                while (fgets(inbuf, sizeof(inbuf), infp) != NULL) {
                        qp_encode_line(outbuf, inbuf);
 
-                       if (!strncmp("From ", outbuf, strlen("From "))) {
+                       if (!strncmp("From ", outbuf, sizeof("From ")-1)) {
                                gchar *tmpbuf = outbuf;
                                
-                               tmpbuf += strlen("From ");
+                               tmpbuf += sizeof("From ")-1;
                                
                                fputs("=46rom ", outfp);
                                fputs(tmpbuf, outfp);