Declare printf-like attributes for strcatf() and xasprintf()
Declare printf-like attributes for strcatf() and xasprintf(), and clean up errors found by the compile after doing so.
This commit is contained in:
@ -1984,9 +1984,9 @@ SendResp_dlnafile(struct upnphttp *h, char *object)
|
||||
|
||||
if( h->reqflags & FLAG_CAPTION )
|
||||
{
|
||||
if( sql_get_int_field(db, "SELECT ID from CAPTIONS where ID = '%lld'", id) > 0 )
|
||||
if( sql_get_int_field(db, "SELECT ID from CAPTIONS where ID = '%lld'", (long long)id) > 0 )
|
||||
strcatf(&str, "CaptionInfo.sec: http://%s:%d/Captions/%lld.srt\r\n",
|
||||
lan_addr[h->iface].str, runtime_vars.port, id);
|
||||
lan_addr[h->iface].str, runtime_vars.port, (long long)id);
|
||||
}
|
||||
|
||||
strftime(date, 30,"%a, %d %b %Y %H:%M:%S GMT" , gmtime(&curtime));
|
||||
|
Reference in New Issue
Block a user