Make static analysis happy.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 19 Aug 2014 10:55:56 -0400
changeset 1354 3e80839670da
parent 1353 5ef6aca28421
child 1355 52a7487e505c
Make static analysis happy.
src/platform_unix.c
--- a/src/platform_unix.c	Tue Aug 19 02:28:13 2014 -0400
+++ b/src/platform_unix.c	Tue Aug 19 10:55:56 2014 -0400
@@ -173,7 +173,7 @@
 
         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)