From: Jaroslav Kysela Date: Mon, 22 Feb 2016 19:55:30 +0000 (+0100) Subject: settings: fix the ugly bug (low limit of htsmsg_binary_serialize) X-Git-Tag: v4.2.1~988 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=694d37c15f458b540b4e566ff80aa307ad7d76ef;p=thirdparty%2Ftvheadend.git settings: fix the ugly bug (low limit of htsmsg_binary_serialize) --- diff --git a/src/settings.c b/src/settings.c index cb97814d3..7ec1cfb59 100644 --- a/src/settings.c +++ b/src/settings.c @@ -183,11 +183,13 @@ hts_settings_save(htsmsg_t *record, const char *pathfmt, ...) } else { #if ENABLE_ZLIB msgdata = NULL; - r = htsmsg_binary_serialize(record, &msgdata, &msglen, 0x10000); + r = htsmsg_binary_serialize(record, &msgdata, &msglen, 2*1024*1024); if (!r && msglen >= 4) { r = tvh_gzip_deflate_fd_header(fd, msgdata + 4, msglen - 4, 3); if (r) ok = 0; + } else { + tvhlog(LOG_ALERT, "settings", "Unable to pack the configuration data \"%s\"", path); } free(msgdata); #endif