Skip to content

Commit

Permalink
fix segfault when https:// handler ends with %u
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 27, 2023
1 parent fbe4ed5 commit b774fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gplaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ static pid_t start_handler(const char *handler, const char *filename, char *comm
}

for (i = 0; *handler && i < length - 1; ) {
if (handler[0] == '%' && handler[i] != '\0') {
if (handler[0] == '%' && handler[1] != '\0') {
const char *append = "";
switch (handler[1]) {
case '%': append = "%"; break;
Expand Down

0 comments on commit b774fc7

Please sign in to comment.