Mercurial > libpst
diff src/debug.c @ 260:156cf548c764
adding more debug code
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 17 Apr 2011 14:07:25 -0700 |
parents | 2f38c4ce606f |
children | cc8ee701f190 |
line wrap: on
line diff
--- a/src/debug.c Sat Apr 16 10:31:32 2011 -0700 +++ b/src/debug.c Sun Apr 17 14:07:25 2011 -0700 @@ -39,8 +39,8 @@ #ifdef HAVE_SEMAPHORE_H debug_mutex = (sem_t*)output_mutex; #endif - memset(indent, ' ', MAX_DEPTH); - indent[MAX_DEPTH] = '\0'; + memset(indent, ' ', MAX_DEPTH*4); + indent[MAX_DEPTH*4] = '\0'; if (debug_fp) pst_debug_close(); if (!fname) return; if ((debug_fp = fopen(fname, "wb")) == NULL) {