0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-03-14 02:17:04 +00:00

Fixed printf test on android

This commit is contained in:
Maria Matejka 2019-04-16 20:22:33 +02:00
parent ca4e7b9149
commit 4e164bb374

View File

@ -33,10 +33,12 @@ t_simple(void)
BSPRINTF(1, "\xff", buf, "%c", 0xff);
errno = 5;
BSPRINTF(18, "Input/output error", buf, "%m");
errno = 0;
const char *ioemsg = strerror(errno);
const int ioesize = strlen(ioemsg);
BSPRINTF(ioesize, ioemsg, buf, "%m");
BSPRINTF(18, "Input/output error", buf, "%M", 5);
errno = 0;
BSPRINTF(ioesize, ioemsg, buf, "%M", 5);
BSPRINTF(11, "TeSt%StRiNg", buf, "%s", "TeSt%StRiNg");