From c9f40346bc4454bcf581f7a2bb134aca9d535e83 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 19 Aug 2014 10:55:56 -0400 Subject: [PATCH] Make static analysis happy. --- src/platform_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_unix.c b/src/platform_unix.c index e11c24b..b3e4e23 100644 --- a/src/platform_unix.c +++ b/src/platform_unix.c @@ -173,7 +173,7 @@ static char *findBinaryInPath(const char *bin, char *envr) binlen = strlen(bin); size = strlen(start) + binlen + 2; - if (size > alloc_size) + if (size >= alloc_size) { char *x = (char *) allocator.Realloc(exe, size); if (!x)