Skip to content

Commit

Permalink
Fix incorrect stringification
Browse files Browse the repository at this point in the history
  • Loading branch information
vacantron committed Nov 7, 2023
1 parent d3741ca commit ddb4f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/c.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void sprintf(char *buffer, char *str, ...)
buffer[bi++] = var_args[pi];
break;
case 115: /* s */
strcpy(buffer + bi, var_args[bi]);
strcpy(buffer + bi, var_args[pi]);
bi += strlen(var_args[pi]);
break;
case 111: /* o */
Expand Down

0 comments on commit ddb4f30

Please sign in to comment.