fix payload type parser, which was limited 10-character long mime-types !

This commit is contained in:
Simon Morlat 2015-02-09 09:05:37 +01:00
parent 06fb5da198
commit 63673995f1

View file

@ -242,9 +242,9 @@ PayloadTypeParser::PayloadTypeParser(LinphoneCore *core, const string &mime_type
istringstream ist(mime_type);
ist >> number;
if (ist.fail()) {
char type[12];
char type[64]={0};
int rate, channels;
if (sscanf(mime_type.c_str(), "%11[^/]/%u/%u", type, &rate, &channels) != 3) {
if (sscanf(mime_type.c_str(), "%63[^/]/%u/%u", type, &rate, &channels) != 3) {
mSuccesful = false;
return;
}