Diff between 9b346513cc35c83da332c4b6ebd65b4674178a26 and c44a2a233d1b1873a7d4a9085c8d6bd61835bfac

Changed Files

File Additions Deletions Status
src/shared/ringbuf.c +1 -1 modified

Full Patch

diff --git a/src/shared/ringbuf.c b/src/shared/ringbuf.c
index 3dc7ed7..1b7adbb 100644
--- a/src/shared/ringbuf.c
+++ b/src/shared/ringbuf.c
@@ -237,7 +237,7 @@ int ringbuf_vprintf(struct ringbuf *ringbuf, const char *format, va_list ap)
 		ringbuf->in_tracing(ringbuf->buffer + offset, end,
 							ringbuf->in_data);
 
-	if (len - end > 0) {
+	if ((size_t) len > end) {
 		/* Put the remainder of string at the beginning */
 		memcpy(ringbuf->buffer, str + end, len - end);