mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
(get_string): Removed debugging hack.
This commit is contained in:
parent
6ab8378c00
commit
36ca1121b5
@ -1,3 +1,7 @@
|
|||||||
|
2004-10-31 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* simple-gettext.c (get_string): Removed debugging hack.
|
||||||
|
|
||||||
2004-10-27 Werner Koch <wk@g10code.com>
|
2004-10-27 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* simple-gettext.c: Removed windows.h.
|
* simple-gettext.c: Removed windows.h.
|
||||||
|
@ -306,14 +306,13 @@ get_string( struct loaded_domain *domain, u32 idx )
|
|||||||
{
|
{
|
||||||
size_t plen, buflen;
|
size_t plen, buflen;
|
||||||
char *buf;
|
char *buf;
|
||||||
static int debug_hack;
|
|
||||||
|
|
||||||
domain->mapped[idx] = 1;
|
domain->mapped[idx] = 1;
|
||||||
|
|
||||||
plen = strlen (p);
|
plen = strlen (p);
|
||||||
buf = utf8_to_native (p, plen, -1);
|
buf = utf8_to_native (p, plen, -1);
|
||||||
buflen = strlen (buf);
|
buflen = strlen (buf);
|
||||||
if (buflen <= plen && (++debug_hack %3))
|
if (buflen <= plen)
|
||||||
strcpy (p, buf);
|
strcpy (p, buf);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user