Lines 163-169
Link Here
|
163 |
#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
163 |
#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
164 |
char msg_ctxt_id[msgctxt_len + msgid_len]; |
164 |
char msg_ctxt_id[msgctxt_len + msgid_len]; |
165 |
#else |
165 |
#else |
166 |
int translation_found; |
|
|
167 |
char buf[1024]; |
166 |
char buf[1024]; |
168 |
char *msg_ctxt_id = |
167 |
char *msg_ctxt_id = |
169 |
(msgctxt_len + msgid_len <= sizeof(buf) |
168 |
(msgctxt_len + msgid_len <= sizeof(buf) |
Lines 177-183
Link Here
|
177 |
memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); |
176 |
memcpy(msg_ctxt_id + msgctxt_len, msgid, msgid_len); |
178 |
translation = dngettext(domain, msg_ctxt_id, msgid_plural, n); |
177 |
translation = dngettext(domain, msg_ctxt_id, msgid_plural, n); |
179 |
/* Test must occur before msg_ctxt_id freed */ |
178 |
/* Test must occur before msg_ctxt_id freed */ |
180 |
translation_found = !(translation == msg_ctxt_id || translation == msgid_plural); |
179 |
int translation_found = !(translation == msg_ctxt_id || translation == msgid_plural); |
181 |
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
180 |
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
182 |
if (msg_ctxt_id != buf) { |
181 |
if (msg_ctxt_id != buf) { |
183 |
free(msg_ctxt_id); |
182 |
free(msg_ctxt_id); |