summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-09-10 07:19:05 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-09 21:35:18 -0700
commitdbbf23ed51cdd219427a62aec2462ec038cc59cc (patch)
treed8c434d3274f40a037680a463d866ab39318a216 /uemis-downloader.c
parent33c9cc60eff9c32f59cc32e6a194aabee40b3fff (diff)
downloadsubsurface-dbbf23ed51cdd219427a62aec2462ec038cc59cc.tar.gz
Fix memory leak on uemis downloader
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index a5e8a391a..9b45d0ee4 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -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;