]> granicus.if.org Git - neomutt/commitdiff
update_content_info
authorRichard Russon <rich@flatcap.org>
Sat, 23 Jun 2018 00:32:25 +0000 (01:32 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 23 Jun 2018 15:24:59 +0000 (16:24 +0100)
sendlib.c

index afa5f037b09ddb74942fcb1946712e68f9e461a6..afbd48c565fbec052db65be92f6fa8b3ca9ce216 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -560,7 +560,7 @@ struct ContentState
 };
 
 static void update_content_info(struct Content *info, struct ContentState *s,
-                                char *d, size_t dlen)
+                                char *buf, size_t buflen)
 {
   bool from = s->from;
   int whitespace = s->whitespace;
@@ -568,7 +568,7 @@ static void update_content_info(struct Content *info, struct ContentState *s,
   int linelen = s->linelen;
   bool was_cr = s->was_cr;
 
-  if (!d) /* This signals EOF */
+  if (!buf) /* This signals EOF */
   {
     if (was_cr)
       info->binary = true;
@@ -578,9 +578,9 @@ static void update_content_info(struct Content *info, struct ContentState *s,
     return;
   }
 
-  for (; dlen; d++, dlen--)
+  for (; buflen; buf++, buflen--)
   {
-    char ch = *d;
+    char ch = *buf;
 
     if (was_cr)
     {