mshtml/tests: Avoid using snprintf().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-04-23 11:12:20 +02:00
parent 5348bf6742
commit 40de7f2e23
1 changed files with 2 additions and 2 deletions

View File

@ -2281,7 +2281,7 @@ static IHTMLImgElement *_create_img_elem(unsigned line, IHTMLDocument2 *doc,
test_disp((IUnknown*)factory, &IID_IHTMLImageElementFactory, NULL, "[object]");
if(wdth >= 0){
snprintf(buf, 16, "%d", wdth);
sprintf(buf, "%d", wdth);
V_VT(&width) = VT_BSTR;
V_BSTR(&width) = a2bstr(buf);
}else{
@ -2290,7 +2290,7 @@ static IHTMLImgElement *_create_img_elem(unsigned line, IHTMLDocument2 *doc,
}
if(hght >= 0){
snprintf(buf, 16, "%d", hght);
sprintf(buf, "%d", hght);
V_VT(&height) = VT_BSTR;
V_BSTR(&height) = a2bstr(buf);
}else{