Commit 40de7f2e authored by Alexandre Julliard's avatar Alexandre Julliard

mshtml/tests: Avoid using snprintf().

parent 5348bf67
......@@ -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{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment