1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

(get_string): Removed debugging hack.

This commit is contained in:
Werner Koch 2004-10-30 22:49:09 +00:00
parent 6ab8378c00
commit 36ca1121b5
2 changed files with 5 additions and 2 deletions

View File

@ -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>
* simple-gettext.c: Removed windows.h.

View File

@ -306,14 +306,13 @@ get_string( struct loaded_domain *domain, u32 idx )
{
size_t plen, buflen;
char *buf;
static int debug_hack;
domain->mapped[idx] = 1;
plen = strlen (p);
buf = utf8_to_native (p, plen, -1);
buflen = strlen (buf);
if (buflen <= plen && (++debug_hack %3))
if (buflen <= plen)
strcpy (p, buf);
else
{