Skip to content

Commit 11b29c8

Browse files
committed
fix logging?
1 parent 0ef67aa commit 11b29c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sfloader/fluid_sfont.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define FLUID_PRIi64 "lld"
3030
#endif
3131

32-
#ifdef _WIN32
32+
#ifdef 0
3333
#define FLUID_PRIsize "Iu"
3434
#else
3535
#define FLUID_PRIsize "zu"
@@ -94,6 +94,7 @@ int safe_fread(void *buf, fluid_long_long_t count, void *fd)
9494
offset += written;
9595
}
9696
}
97+
output[offset - 1] = '\0';
9798

9899
FLUID_LOG(FLUID_INFO, "safe_fread success: ftell=%" FLUID_PRIi64 "; buf now contains '%s'", FLUID_FTELL((FILE *)fd), output);
99100

0 commit comments

Comments
 (0)