summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-01-11 10:47:07 +0000
committersabetts <sabetts>2002-01-11 10:47:07 +0000
commitf92fdee896fa396680b994b709d6ac775636a44c (patch)
treed95028fe9c6293daaa531b2ad69ef5f79a5b28b2
parent7760dea7c2bc409fc5dc8db8774ff52ddcdd68a0 (diff)
downloadratpoison-f92fdee896fa396680b994b709d6ac775636a44c.zip
(handler): store the error text at the beginning of
the string instead of 7 bytes in.
-rw-r--r--ChangeLog5
-rw-r--r--src/main.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 410e903..5ae55d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-11 shawn <sabetts@vcn.bc.ca>
+
+ * src/main.c (handler): store the error text at the beginning of
+ the string instead of 7 bytes in.
+
2002-01-10 shawn <sabetts@vcn.bc.ca>
* src/events.c (delegate_event): ignore the CirculateRequest event.
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