commit c18a2f85c5680a0aaeefff4e949a25666aab13bd
parent dc955cc65c64fc3d9e2396b5330fda3df508acc0
Author: wwp <subscript@free.fr>
Date: Fri, 9 Jun 2023 17:22:27 +0200
Fix CID 1532282.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/procheader.c b/src/procheader.c
@@ -973,10 +973,12 @@ static gint procheader_scan_date_string(const gchar *o_str,
gint zone1 = 0, zone2 = 0;
gchar offset_sign, zonestr[7];
gchar sep1;
- gchar str[strlen(o_str)+1];
if (o_str == NULL)
return -1;
+
+ gchar str[strlen(o_str)+1];
+
strcpy(str, o_str);
if (strchr(str, '(') != NULL)
procheader_remove_comment_in_date_string(str);