#define ISO_slash 0x2f
#define ISO_colon 0x3a
-#define DEBUG_PRINTF printf
-//#define DEBUG_PRINTF(...)
+//#define DEBUG_PRINTF printf
+#define DEBUG_PRINTF(...)
// this callback gets the results of a command, line by line. need to check if
{
if (fwrite(buf, 1, len, fd) == len) {
file_cnt += len;
- // HACK alert work around bug causing file corruption when writing large amounts of data
- if (file_cnt >= 400) {
- file_cnt = 0;
- fclose(fd);
- fd = fopen(output_filename, "a");
- }
return 1;
} else {