summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/idevicecrashreport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c
index 6918d6b..d0b2c7a 100644
--- a/tools/idevicecrashreport.c
+++ b/tools/idevicecrashreport.c
@@ -135,7 +135,7 @@ static int afc_client_copy_and_remove_crash_reports(afc_client_t afc, const char
135 135
136 char **fileinfo = NULL; 136 char **fileinfo = NULL;
137 struct stat stbuf; 137 struct stat stbuf;
138 stbuf.st_size = 0; 138 memset(&stbuf, '\0', sizeof(struct stat));
139 139
140 /* assemble absolute source filename */ 140 /* assemble absolute source filename */
141 strcpy(((char*)source_filename) + device_directory_length, list[k]); 141 strcpy(((char*)source_filename) + device_directory_length, list[k]);