aboutsummaryrefslogtreecommitdiffstats
path: root/util/simple-gettext.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/simple-gettext.c')
-rw-r--r--util/simple-gettext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/simple-gettext.c b/util/simple-gettext.c
index 7705b5d1c..8ec6aba16 100644
--- a/util/simple-gettext.c
+++ b/util/simple-gettext.c
@@ -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
{