Signed-off-by: Miika Turkia <[email protected]>
---
 uemis-downloader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uemis-downloader.c b/uemis-downloader.c
index 0cb0f9f..d17f67d 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -960,7 +960,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;
-- 
2.1.4

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to