/* Implementation of the internal dcigettext function.
- Copyright (C) 1995-2024 Free Software Foundation, Inc.
+ Copyright (C) 1995-2025 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
not_translated_yet:
inbuf = (const unsigned char *) result;
- outbuf = freemem + sizeof (size_t);
# ifndef _LIBC
transmem_list = NULL;
# endif
while (1)
{
transmem_block_t *newmem;
-# ifdef _LIBC
- size_t non_reversible;
- int res;
if (freemem_size < sizeof (size_t))
goto resize_freemem;
+ outbuf = freemem + sizeof (size_t);
+
+# ifdef _LIBC
+ size_t non_reversible;
+ int res;
+
res = __gconv (convd->conv,
&inbuf, inbuf + resultlen,
&outbuf,
char *outptr = (char *) outbuf;
size_t outleft;
- if (freemem_size < sizeof (size_t))
- goto resize_freemem;
-
outleft = freemem_size - sizeof (size_t);
if (iconv (convd->conv,
(ICONV_CONST char **) &inptr, &inleft,
transmem_list = newmem;
freemem = newmem;
# endif
-
- outbuf = freemem + sizeof (size_t);
}
/* We have now in our buffer a converted string. Put this