Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit cc3412a

Browse files
Merge pull request #95 from krisman/xabort-errno-quickfix
Fix error_code display on error
2 parents 3eca9b7 + e08e8b3 commit cc3412a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intercept.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ xabort_errno(int error_code, const char *msg)
517517

518518
/* not using libc - inline sprintf */
519519
do {
520-
*c-- = error_code % 10;
520+
*c-- = (error_code % 10) + '0';
521521
++len;
522522
error_code /= 10;
523523
} while (error_code != 0);

0 commit comments

Comments
 (0)