Skip to content

Commit

Permalink
Fixed string getting cut off because we miscounted.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 15, 2014
1 parent 2dddb01 commit f4569e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macelf/macelf.c
Expand Up @@ -80,7 +80,7 @@ static int find_soname_file_by_abspath(const char *path, const char *soname)
{
if (path == NULL)
return -1;
const size_t len = strlen(path) + strlen(soname) + 1;
const size_t len = strlen(path) + strlen(soname) + 2;
char *fullpath = (char *) alloca(len);
snprintf(fullpath, len, "%s/%s", path, soname);
return open(soname, O_RDONLY);
Expand Down

0 comments on commit f4569e0

Please sign in to comment.