Skip to content

Commit

Permalink
Simpler fix for ixerror bug.
Browse files Browse the repository at this point in the history
Use stack rather than heap to save prchar output.
  • Loading branch information
gwsw committed Jun 29, 2024
1 parent 6819fa5 commit c9be49b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions output.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,9 @@ public void ixerror(constant char *fmt, PARG *parg)
ierror(fmt, parg);
else
{
char *ichar = save(prchar((LWCHAR) intr_char));
char ichar[MAX_PRCHAR_LEN+1];
strcpy(ichar, prchar((LWCHAR) intr_char));
ierror_suffix(fmt, parg, "... (", ichar, " or interrupt to abort)");
free(ichar);
}
}

Expand Down
2 changes: 1 addition & 1 deletion version.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ v658 6/13/24 Fix double-free in lesskey parser; fix crash using small value
for --line-num-width.
v659 6/20/24 Fix typo in help.
v660 6/24/24 Fix bug in ixerror.
v661
v661 Simpler fix for ixerror bug.
*/

char version[] = "661x";

0 comments on commit c9be49b

Please sign in to comment.