Now it will handle the obscure case where sprintf returns a string instead of an int. Reviewed by mccabe and jband. Approved by chofmann.

This commit is contained in:
briano%netscape.com 1999-08-14 03:11:10 +00:00
Родитель 2fdb417734
Коммит 13486f087a
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -755,7 +755,12 @@ xpidl_sprint_iid(struct nsID *id, char iidbuf[])
(PRUint32) id->m3[2], (PRUint32) id->m3[3],
(PRUint32) id->m3[4], (PRUint32) id->m3[5],
(PRUint32) id->m3[6], (PRUint32) id->m3[7]);
#ifdef SPRINTF_RETURNS_STRING
return (printed && strlen((char *)printed) == 36);
#else
return (printed == 36);
#endif
}
/* We only parse the {}-less format. (xpidl_header never has, so we're safe.) */