From 12183084b75365777aecd57fe43a355f39d1200c Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 5 Feb 2005 22:50:33 +0000 Subject: (svn r1808) Use strcmp() instead of home brewed function str_eq() --- misc_gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'misc_gui.c') diff --git a/misc_gui.c b/misc_gui.c index 8a5ef640e..6dcb30c65 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -896,7 +896,8 @@ static void QueryStringWndProc(Window *w, WindowEvent *e) case 3: DeleteWindow(w); break; case 4: press_ok:; - if (str_eq(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) && !_do_edit_on_text_even_when_no_change_to_edit_box) { + if (strcmp(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) == 0 && + !_do_edit_on_text_even_when_no_change_to_edit_box) { DeleteWindow(w); } else { byte *buf = WP(w,querystr_d).buf; -- cgit v1.2.3-54-g00ecf