diff --git a/src/util/FFstrbuf.c b/src/util/FFstrbuf.c index 0794bad66..f68440b44 100644 --- a/src/util/FFstrbuf.c +++ b/src/util/FFstrbuf.c @@ -49,6 +49,7 @@ void ffStrbufEnsureCapacity(FFstrbuf* strbuf, uint32_t capacity) if(capacity == UINT32_MAX) { + --capacity; //This is required to silence a gcc compiler warning fprintf(stderr, "Warning: ffStrbufEnsureCapacity called with UINT32_MAX. Highest allowed value is UINT32_MAX - 1. Exiting.\n"); exit(812); }