From 63673995f1a6f05431e0039ccf1759f4c832df63 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 9 Feb 2015 09:05:37 +0100 Subject: [PATCH] fix payload type parser, which was limited 10-character long mime-types ! --- daemon/daemon.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/daemon.cc b/daemon/daemon.cc index 323f399cf..d0217cc52 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -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; }