瀏覽代碼

Make static analysis happy.

Ryan C. Gordon 11 年之前
父節點
當前提交
c9f40346bc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)