Skip to content

Commit d09185e

Browse files
committed
Lib_common: fixed invalid pointer
1 parent 6795181 commit d09185e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static void push_basename_entry(char ***binarynames, const char *bnc, size_t * t
9191
*binarynames = (char **)realloc(*binarynames, (*templates + 2)*sizeof(**binarynames));
9292
assert(*binarynames != NULL);
9393
(*binarynames)[(*templates)++] = strdup(bn_v0);
94-
(*binarynames)[*templates +1] = NULL;
94+
(*binarynames)[*templates] = NULL;
9595
}
9696
free(alt_v0);
9797
}

0 commit comments

Comments
 (0)