Skip to content

Commit 6a25da0

Browse files
authoredOct 10, 2019
Merge pull request #396 from Affonso-Gui/fix-format-interrupt
Safely exit format on mismatch argument
2 parents e9bda60 + 1250d3f commit 6a25da0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lisp/c/lispio.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,11 @@ pointer argv[];
491491
if (islower(cch)) cch=toupper(cch);}
492492
switch(cch) {
493493
case 'A': /*Ascii*/
494+
a=nextfarg();
494495
osf=ctx->slashflag;
495496
ctx->slashflag=1;
496497
written_count[thr_self()]=0;
497-
prinx(ctx,(pointer)nextfarg(),dest);
498+
prinx(ctx,a,dest);
498499
while (param[0]>written_count[thr_self()]) writech(dest,' ');
499500
ctx->slashflag=osf;
500501
break;

0 commit comments

Comments
 (0)
Please sign in to comment.