Skip to content

Commit

Permalink
Make static analysis happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 19, 2014
1 parent 53ef674 commit c9f4034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_unix.c
Expand Up @@ -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)
Expand Down

0 comments on commit c9f4034

Please sign in to comment.