From e1fc4d60e7b7a7e33b3e7393e9c25bd197afd8bd Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Thu, 19 May 2022 23:29:19 -0700 Subject: [PATCH] Wrapping a printf in im.c in a debug #ifdef --- src/im.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/im.c b/src/im.c index a5edd1675..ff8d9ce20 100644 --- a/src/im.c +++ b/src/im.c @@ -2,7 +2,7 @@ im.c Input method handling - Copyright (c) 2007-2019 by Mark K. Kim and others + Copyright (c) 2007-2022 by Mark K. Kim and others This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -755,7 +755,9 @@ static int im_event_c(IM_DATA * im, SDL_Event event) } //im->s[1] = L'\0'; +#ifdef IM_DEBUG printf("im->s %ls, event.text.text %s\n", im->s, event.text.text); +#endif im->buf[0] = L'\0'; return 0;