Commit 1be348ea authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

xmllite: Use wine_dbg_sprintf instead of a static buffer.

parent d822f32a
...@@ -125,11 +125,8 @@ static const char *debugstr_nodetype(XmlNodeType nodetype) ...@@ -125,11 +125,8 @@ static const char *debugstr_nodetype(XmlNodeType nodetype)
}; };
if (nodetype > _XmlNodeType_Last) if (nodetype > _XmlNodeType_Last)
{ return wine_dbg_sprintf("unknown type=%d", nodetype);
static char buf[25];
sprintf(buf, "unknown type=%d", nodetype);
return buf;
}
return type_names[nodetype]; return type_names[nodetype];
} }
...@@ -148,11 +145,8 @@ static const char *debugstr_prop(XmlReaderProperty prop) ...@@ -148,11 +145,8 @@ static const char *debugstr_prop(XmlReaderProperty prop)
}; };
if (prop > _XmlReaderProperty_Last) if (prop > _XmlReaderProperty_Last)
{ return wine_dbg_sprintf("unknown property=%d", prop);
static char buf[25];
sprintf(buf, "unknown property=%d", prop);
return buf;
}
return prop_names[prop]; return prop_names[prop];
} }
......
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