Fix an issue with pf Z

This commit is contained in:
emvivre 2015-05-17 19:46:09 +02:00 committed by pancake
parent 1272d5dd8f
commit 0eab267449

View File

@ -1368,7 +1368,7 @@ R_API int r_print_format(RPrint *p, ut64 seek, const ut8* b, const int len,
case 'Z': // zero terminated wide string
r_print_format_nulltermwidestring (p, len, endian, mode, setval, seeki, buf, i, size);
if (size == -1)
i+=r_wstr_clen((char*)(buf+seeki))*2+2;
i+=r_wstr_clen((char*)(buf+i))*2+2;
else
while (size--) i+=2;
break;