Skip to content

Commit

Permalink
chore: read more data from stdin
Browse files Browse the repository at this point in the history
make sure we can reach return address
  • Loading branch information
KpwnZ authored Apr 17, 2024
1 parent 345efcd commit 710eecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion challenges/pwn/nimgame-level-1/build/src/nimgame.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main() {
printf("There are %i tokens on the table.\n", tokens_cnt);
while(tokens_cnt > 0) {
printf("How many tokens would you like to take?: ");
read(0, input, 0x32);
read(0, input, 0x60);
printf("\nPlayer takes %s tokens.\n", input);
input[8] = 0;
int token = atoi(input);
Expand Down

0 comments on commit 710eecd

Please sign in to comment.