Skip to content
/ janet Public
forked from janet-lang/janet

Commit

Permalink
Fix buffer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpakin committed Jul 24, 2020
1 parent 43438d3 commit 02e5e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/corelib.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static char *get_processed_name(const char *name) {
}
ret[0] = '.';
ret[1] = '/';
memcpy(ret + 2, name, l + 3);
memcpy(ret + 2, name, l + 1);
return ret;
}

Expand Down

0 comments on commit 02e5e49

Please sign in to comment.