Alexandre Julliard : mshtml/tests: Avoid using snprintf().

Alexandre Julliard julliard at winehq.org
Tue Apr 23 17:39:53 CDT 2019


Module: wine
Branch: master
Commit: 40de7f2e234dccabba0fb55cadca7f1fa1cb601f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=40de7f2e234dccabba0fb55cadca7f1fa1cb601f

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Apr 23 11:12:20 2019 +0200

mshtml/tests: Avoid using snprintf().

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/dom.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index a51e09a..bcc6ccb 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -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{




More information about the wine-cvs mailing list