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 68e90388be36066c86dcaba5e7b53cb70565536d..01163bb7e9772dabd60ec06832405d39f822376b 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 */