Dmitry Timoshkov : xmllite: Use wine_dbg_sprintf instead of a static buffer .
Alexandre Julliard
julliard at winehq.org
Wed Jan 1 14:24:21 CST 2014
Module: wine
Branch: master
Commit: 1be348ea5165dd12eec698101b6938bdef2b7140
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1be348ea5165dd12eec698101b6938bdef2b7140
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Dec 30 18:16:59 2013 +0900
xmllite: Use wine_dbg_sprintf instead of a static buffer.
---
dlls/xmllite/reader.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/dlls/xmllite/reader.c b/dlls/xmllite/reader.c
index 0ecb593..cfd54d4 100644
--- a/dlls/xmllite/reader.c
+++ b/dlls/xmllite/reader.c
@@ -125,11 +125,8 @@ static const char *debugstr_nodetype(XmlNodeType nodetype)
};
if (nodetype > _XmlNodeType_Last)
- {
- static char buf[25];
- sprintf(buf, "unknown type=%d", nodetype);
- return buf;
- }
+ return wine_dbg_sprintf("unknown type=%d", nodetype);
+
return type_names[nodetype];
}
@@ -148,11 +145,8 @@ static const char *debugstr_prop(XmlReaderProperty prop)
};
if (prop > _XmlReaderProperty_Last)
- {
- static char buf[25];
- sprintf(buf, "unknown property=%d", prop);
- return buf;
- }
+ return wine_dbg_sprintf("unknown property=%d", prop);
+
return prop_names[prop];
}
More information about the wine-cvs
mailing list