]> git.ipfire.org Git - thirdparty/curl.git/commit
mprintf: check fputc error rather than matching returned character
authorPatrick Monnerat <patrick@monnerat.net>
Sun, 14 Apr 2024 12:20:28 +0000 (14:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Apr 2024 06:38:14 +0000 (08:38 +0200)
commit6e8a6039b84d0bb78a482d896ec0d00c4e0989ff
treef4aa696d7f36c7e5a5f669895bc7449e417fa4ef
parent0469c68f4923f6780a04865c61504f7ed3d83b48
mprintf: check fputc error rather than matching returned character

OS/400 ascii fputc wrapper deviates from the posix standard by the
fact that it returns the ebcdic encoding of the original ascii
character. Testing for a matching value for success will then always
fail.

This commit replaces the chariacter comparison by an explicit error
return check.

Follow-up to ef2cf58
Closes #13367
lib/mprintf.c