diff --git a/include/share/alloc.h b/include/share/alloc.h index b0da6941..248ad102 100644 --- a/include/share/alloc.h +++ b/include/share/alloc.h @@ -66,7 +66,7 @@ #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION extern int alloc_check_threshold, alloc_check_counter; -static inline int alloc_check() { +static inline int alloc_check(void) { if(alloc_check_threshold == INT32_MAX) return 0; else if(alloc_check_counter++ == alloc_check_threshold) diff --git a/src/metaflac/operations.c b/src/metaflac/operations.c index 65fc6dbd..a14a290a 100644 --- a/src/metaflac/operations.c +++ b/src/metaflac/operations.c @@ -758,7 +758,7 @@ void write_metadata(const char *filename, FLAC__StreamMetadata *block, unsigned flac_printf("%c",block->data.application.data[i]); else { char replacement[4] = {0xef, 0xbf, 0xbd, 0}; /* Unicode replacement character */ - flac_printf(replacement); + flac_printf("%s",replacement); } } }