summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 26a9678..ece2b1d 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -29,6 +29,7 @@
29#include <stdio.h> 29#include <stdio.h>
30#include <stdint.h> 30#include <stdint.h>
31#include <stdlib.h> 31#include <stdlib.h>
32#include <time.h>
32 33
33#include "debug.h" 34#include "debug.h"
34#include "libimobiledevice/libimobiledevice.h" 35#include "libimobiledevice/libimobiledevice.h"
@@ -54,7 +55,7 @@ static void debug_print_line(const char *func, const char *file, int line, const
54 time_t the_time; 55 time_t the_time;
55 56
56 time(&the_time); 57 time(&the_time);
57 str_time = g_new0 (gchar, 255); 58 str_time = (char*)malloc(255);
58 strftime(str_time, 254, "%H:%M:%S", localtime (&the_time)); 59 strftime(str_time, 254, "%H:%M:%S", localtime (&the_time));
59 60
60 /* generate header text */ 61 /* generate header text */