devdraw: printmesg: implement "z" fmt arg (safe since printmesg is disabled)

This commit is contained in:
Sigrid Solveig Haflínudóttir 2022-04-02 11:12:12 +00:00
parent 30f5752710
commit 945fef7ff2

View file

@ -1383,6 +1383,10 @@ printmesg(char *fmt, uchar *a, int plsprnt)
q += sprint(q, " %.4ux", BGSHORT(a));
a += 2;
break;
case 'z':
q += sprint(q, " %.*q", (int)*a, (char*)(a+1));
a += 1 + *a;
break;
}
}
*q++ = '\n';