diff -Nru fcitx-cloudpinyin-0.1.2/debian/changelog fcitx-cloudpinyin-0.1.2/debian/changelog --- fcitx-cloudpinyin-0.1.2/debian/changelog 2011-10-24 00:59:11.000000000 +0000 +++ fcitx-cloudpinyin-0.1.2/debian/changelog 2012-02-02 14:02:09.000000000 +0000 @@ -1,9 +1,16 @@ -fcitx-cloudpinyin (0.1.2-1~maverick) maverick; urgency=low +fcitx-cloudpinyin (0.1.2-2~maverick) maverick; urgency=low + + * Upstream patch: when input a long sentence, + fcitx close: Get signal No.: 6. + + -- YunQiang Su Tue, 27 Dec 2011 15:41:44 +0800 + +fcitx-cloudpinyin (0.1.2-1) unstable; urgency=low * New upstream release. * Add DMUA for YunQiang Su. - -- YunQiang Su Thu, 20 Oct 2011 11:42:20 +0800 + -- Aron Xu Thu, 20 Oct 2011 11:42:20 +0800 fcitx-cloudpinyin (0.1.1-1) unstable; urgency=low diff -Nru fcitx-cloudpinyin-0.1.2/debian/patches/01_crash_when_long_sentence.patch fcitx-cloudpinyin-0.1.2/debian/patches/01_crash_when_long_sentence.patch --- fcitx-cloudpinyin-0.1.2/debian/patches/01_crash_when_long_sentence.patch 1970-01-01 00:00:00.000000000 +0000 +++ fcitx-cloudpinyin-0.1.2/debian/patches/01_crash_when_long_sentence.patch 2012-02-02 13:36:30.000000000 +0000 @@ -0,0 +1,24 @@ +Index: fcitx-cloudpinyin/src/cloudpinyin.c +=================================================================== +--- fcitx-cloudpinyin.orig/src/cloudpinyin.c 2011-12-27 15:33:04.139250172 +0800 ++++ fcitx-cloudpinyin/src/cloudpinyin.c 2011-12-27 15:40:44.513533057 +0800 +@@ -354,7 +354,7 @@ + asprintf(&url, engine[cloudpinyin->config.source].RequestPinyin, cloudpinyin->key, urlstring); + else + asprintf(&url, engine[cloudpinyin->config.source].RequestPinyin, urlstring); +- free(urlstring); ++ curl_free(urlstring); + + curl_easy_setopt(curl, CURLOPT_URL, url); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, queue); +@@ -775,7 +775,9 @@ + { + size_t length = end - start; + int conv_length; +- char *realstring = curl_easy_unescape(queue->curl, start, length, &conv_length); ++ char *unescapedstring = curl_easy_unescape(queue->curl, start, length, &conv_length); ++ char *realstring = strdup(unescapedstring); ++ curl_free(unescapedstring); + return realstring; + } + } diff -Nru fcitx-cloudpinyin-0.1.2/debian/patches/series fcitx-cloudpinyin-0.1.2/debian/patches/series --- fcitx-cloudpinyin-0.1.2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ fcitx-cloudpinyin-0.1.2/debian/patches/series 2012-02-02 13:36:30.000000000 +0000 @@ -0,0 +1 @@ +01_crash_when_long_sentence.patch