summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-14 04:45:18 -0500
committerxhe <xhebox@users.noreply.github.com>2018-07-14 18:04:28 +0800
commit4d6a0a214304e463706704df177a5c8fe83d9ce9 (patch)
treec88a4ab598dd7a1d2bcc6156e7f8e049362662a4
parent0268c3614611d4d84dee4ddaa6fbae45f0be7cea (diff)
downloadgettext-tiny-4d6a0a214304e463706704df177a5c8fe83d9ce9.tar.gz
msgfmt: Raise buffer size limits
In the Dzongkha translation of GConf 3.2.6, msgfmt aborts because a line is 4,279 bytes long, while the buffer size is limited to 4,096 bytes. This commit raises the line buffer size to 8,192 bytes, and also doubles the conversion buffer to ensure enough space is still present to do the proper conversions. Resolves #28.
-rw-r--r--src/msgfmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msgfmt.c b/src/msgfmt.c
index da912bd..cfa59ad 100644
--- a/src/msgfmt.c
+++ b/src/msgfmt.c
@@ -370,8 +370,8 @@ int process_line_callback(struct po_info* info, void* user) {
int process(FILE *in, FILE *out) {
struct mo_hdr mohdr = def_hdr;
- char line[4096]; char *lp;
- char convbuf[16384];
+ char line[8192]; char *lp;
+ char convbuf[32768];
struct callbackdata d = {
.num = {