Fix memory leak on uemis downloader

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-09-10 07:19:05 +03:00 committed by Dirk Hohndel
parent 33c9cc60ef
commit dbbf23ed51

View file

@ -968,7 +968,7 @@ static bool do_dump_buffer_to_file(char *buf, char *prefix, int round)
if (strstr(buf, "date{ts{"))
strncpy(date, strstr(buf, "date{ts{"), sizeof(date));
else
strncpy(date, strdup("date{ts{no-date{"), sizeof(date));
strncpy(date, "date{ts{no-date{", sizeof(date));
if (!strstr(buf, "object_id{int{"))
return false;