From f92fdee896fa396680b994b709d6ac775636a44c Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 11 Jan 2002 10:47:07 +0000 Subject: (handler): store the error text at the beginning of the string instead of 7 bytes in. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 9dbf7c6..165aa1f 100644 --- a/src/main.c +++ b/src/main.c @@ -202,7 +202,7 @@ handler (Display *d, XErrorEvent *e) if (ignore_badwindow && e->error_code == BadWindow) return 0; - XGetErrorText (d, e->error_code, error_msg + 7, sizeof (error_msg) - 7); + XGetErrorText (d, e->error_code, error_msg, sizeof (error_msg)); fprintf (stderr, "ratpoison: ERROR: %s!\n", error_msg); /* If there is already an error to report, replace it with this new -- cgit v1.2.3