utils: add noalloc flag to modifyString()
This should make it more straightforward for code analyzers to tell if the function is going to allocate memory.
This commit is contained in:
@ -118,11 +118,11 @@ SendFormats(struct upnphttp *h, const char *sformat)
|
||||
static char *
|
||||
tivo_unescape_tag(char *tag)
|
||||
{
|
||||
modifyString(tag, "&", "&");
|
||||
modifyString(tag, "&amp;lt;", "<");
|
||||
modifyString(tag, "&lt;", "<");
|
||||
modifyString(tag, "&amp;gt;", ">");
|
||||
modifyString(tag, "&gt;", ">");
|
||||
modifyString(tag, "&amp;", "&", 1);
|
||||
modifyString(tag, "&amp;lt;", "<", 1);
|
||||
modifyString(tag, "&lt;", "<", 1);
|
||||
modifyString(tag, "&amp;gt;", ">", 1);
|
||||
modifyString(tag, "&gt;", ">", 1);
|
||||
return tag;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user