diff options
| author | 2011-11-26 15:31:46 +0100 | |
|---|---|---|
| committer | 2012-03-19 01:45:43 +0100 | |
| commit | 055fabdeaa8afcbe905aeb30d5c945f286aecb6a (patch) | |
| tree | edf19d52bb974af429c0f815b0d80b6ac91bae87 /src | |
| parent | d9051baf2e8f4672e6fab3b185a1ec7ce1a8c864 (diff) | |
| download | libimobiledevice-055fabdeaa8afcbe905aeb30d5c945f286aecb6a.tar.gz libimobiledevice-055fabdeaa8afcbe905aeb30d5c945f286aecb6a.tar.bz2 | |
use binary mode for fopen to make it work with win32
Diffstat (limited to 'src')
| -rw-r--r-- | src/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index b1c528d..0bb87a2 100644 --- a/src/debug.c +++ b/src/debug.c | |||
| @@ -140,7 +140,7 @@ inline void debug_buffer_to_file(const char *file, const char *data, const int l | |||
| 140 | { | 140 | { |
| 141 | #ifndef STRIP_DEBUG_CODE | 141 | #ifndef STRIP_DEBUG_CODE |
| 142 | if (debug_level) { | 142 | if (debug_level) { |
| 143 | FILE *f = fopen(file, "w+"); | 143 | FILE *f = fopen(file, "wb"); |
| 144 | fwrite(data, 1, length, f); | 144 | fwrite(data, 1, length, f); |
| 145 | fflush(f); | 145 | fflush(f); |
| 146 | fclose(f); | 146 | fclose(f); |
