Use correct variable in printf
authorRicardo Mones <ricardo@mones.org>
Fri, 9 Jun 2017 06:58:07 +0000 (08:58 +0200)
committerRicardo Mones <ricardo@mones.org>
Fri, 9 Jun 2017 06:58:07 +0000 (08:58 +0200)
A new buf_date was introduced, but the old pointer (buf) still used in
the printf(). Patch by Olivier Brunel.

src/messageview.c

index 68e9038..01163bb 100644 (file)
@@ -966,7 +966,7 @@ static gint disposition_notification_send(MsgInfo *msginfo)
 
        /* Date */
        get_rfc822_date(buf_date, sizeof(buf_date));
-       if (fprintf(fp, "Date: %s\n", buf) < 0)
+       if (fprintf(fp, "Date: %s\n", buf_date) < 0)
                goto FILE_ERROR;
 
        /* From */