Browse Source

Make static analysis happy.

Ryan C. Gordon 11 years ago
parent
commit
c9f40346bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/platform_unix.c

+ 1 - 1
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)