ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] Small patch


From: Kapil Hari Paranjape
Subject: [RP] Small patch
Date: Thu Jan 10 19:23:03 2002
User-agent: Mutt/1.3.25i

Hello,

The error messages printed out by ratpoison (CVS 2002-01-10) contain
some garbage (as also pointed out by Jorgen Schaefer <address@hidden>
in the debian bug number 123942). This is easily fixed by the
following patch (the earlier version (CVS 2001-12-08) inserted some text
into error_msg *before* the XGetErrorText call which explains the "+/-7").

===start of diff=========
--- ratpoison/src/main.c.orig   Fri Jan 11 08:43:18 2002
+++ ratpoison/src/main.c        Fri Jan 11 08:44:48 2002
@@ -202,7 +202,7 @@
 
   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
===========================

Thanks and Regards,

Kapil.
-- 
Always use GPG for privacy; finger -l address@hidden or
 http://www.imsc.ernet.in/~kapil/gpg.html for my Public Key.
------------------------------------------------------------------
 768D/FED1D08D 2000-02-19 Kapil Hari Paranjape <address@hidden>
1024g/CECEB39B 2000-02-19 Kapil Hari Paranjape <address@hidden>
Key fingerprint = B6D2 F4F2 A37C B887 DFA2  9100 5F22 0D1D FED1 D08D
--



reply via email to

[Prev in Thread] Current Thread [Next in Thread]