Commit 6d54aef5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix *printf usage

parent d5b35d8b
...@@ -169,7 +169,7 @@ vsdp_AddAttribute (char **sdp, const char *name, const char *fmt, va_list ap) ...@@ -169,7 +169,7 @@ vsdp_AddAttribute (char **sdp, const char *name, const char *fmt, va_list ap)
return NULL; return NULL;
oldlen += sprintf (ret + oldlen, "a=%s:", name); oldlen += sprintf (ret + oldlen, "a=%s:", name);
oldlen += sprintf (ret + oldlen, fmt, ap); oldlen += vsprintf (ret + oldlen, fmt, ap);
strcpy (ret + oldlen, "\r\n"); strcpy (ret + oldlen, "\r\n");
return *sdp = ret; return *sdp = ret;
} }
...@@ -227,7 +227,7 @@ char *sdp_AddMedia (char **sdp, ...@@ -227,7 +227,7 @@ char *sdp_AddMedia (char **sdp,
*sdp = newsdp; *sdp = newsdp;
ptr = newsdp + inlen; ptr = newsdp + inlen;
ptr += sprintf (ptr, "m=%s %u %s %d\r\n" ptr += sprintf (ptr, "m=%s %u %s %u\r\n"
"b=RR:0\r\n", "b=RR:0\r\n",
type, dport, protocol, pt); type, dport, protocol, pt);
......
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