diff options
author | xhe <xw897002528@gmail.com> | 2018-12-28 22:34:51 +0800 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2019-01-16 02:38:18 +0000 |
commit | 8407f970300e7af6f090dc80c556f9b2fed12dba (patch) | |
tree | 6b64d43f1230568f245e0b65985169d2cc910cd2 | |
parent | b87fb2469824e1f4d1da252f5a2f86434c79ea92 (diff) | |
download | gettext-tiny-8407f970300e7af6f090dc80c556f9b2fed12dba.tar.gz |
poparser: msgid_plural is with nplurals > 2
i made a exactly wrong check there
-rw-r--r-- | src/poparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poparser.c b/src/poparser.c index cf1c6b6..46aaa9f 100644 --- a/src/poparser.c +++ b/src/poparser.c @@ -289,7 +289,7 @@ enum po_error poparser_feed_line(struct po_parser *p, char* in, size_t in_len) { if (!msg->id_len || p->strcnt) return -po_invalid_entry; - if (p->strict && p->hdr.nplurals > 1) { + if (p->strict && p->hdr.nplurals < 2) { return -po_plurals_overflow; } |