Skip to content

Commit

Permalink
Merge pull request #396 from Affonso-Gui/fix-format-interrupt
Browse files Browse the repository at this point in the history
Safely exit format on mismatch argument
  • Loading branch information
k-okada committed Oct 10, 2019
2 parents e9bda60 + 1250d3f commit 6a25da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/c/lispio.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,11 @@ pointer argv[];
if (islower(cch)) cch=toupper(cch);}
switch(cch) {
case 'A': /*Ascii*/
a=nextfarg();
osf=ctx->slashflag;
ctx->slashflag=1;
written_count[thr_self()]=0;
prinx(ctx,(pointer)nextfarg(),dest);
prinx(ctx,a,dest);
while (param[0]>written_count[thr_self()]) writech(dest,' ');
ctx->slashflag=osf;
break;
Expand Down

0 comments on commit 6a25da0

Please sign in to comment.