*** empty log message ***
authorroot <root>
Fri, 18 Aug 2006 23:03:31 +0000 (23:03 +0000)
committerroot <root>
Fri, 18 Aug 2006 23:03:31 +0000 (23:03 +0000)
Changes
src/Makefile.in
src/main.C
src/rxvtc.C
src/rxvtd.C
src/rxvttoolkit.C
src/xpm.C

diff --git a/Changes b/Changes
index 54734e1..b2be96a 100644 (file)
--- a/Changes
+++ b/Changes
@@ -25,6 +25,9 @@ TODO: rxvtd failing to enter cwd of rxvtc leads to crash due to free(this), Gent
 TODO: fix crash because strwidth returning -1 in selection-popup in LC_ALL=C
        - give proper diagnostic when RXVT_SOCKET is too long instead of
           corrupting the stack (patch by exg).
+        - urxvtd no longer crashes when the client sends an inaccessible
+          working directory (reported by Roland Baer).
+        - fixed many minor issues reported by Roland Baer.
 
 7.9  Mon Aug  7 18:16:07 CEST 2006
         - fix the crashing bug people encountered with 7.8 + urxvtd + perl
index 2c3e2ba..6c05a18 100644 (file)
@@ -137,7 +137,7 @@ perlxsi.c: Makefile
        $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt
 
 rxvtperl.C: rxvtperl.xs typemap
-       $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap -prototypes rxvtperl.xs >$@
+       $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -csuffix .C -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap -prototypes rxvtperl.xs >$@
 
 rxvtperl.o: rxvtperl.C perlxsi.c
        $(COMPILE) @PERLFLAGS@ -DLIBDIR="\"$(libdir)/urxvt\"" -c $<
index 0d63afd..68141d0 100644 (file)
@@ -272,9 +272,9 @@ rxvt_term::~rxvt_term ()
       clear ();
     }
 
-  delete pix_colors_focused;
+  delete [] pix_colors_focused;
 #if OFF_FOCUS_FADING
-  delete pix_colors_unfocused;
+  delete [] pix_colors_unfocused;
 #endif
 
   displays.put (display);
index f424f31..435d67f 100644 (file)
@@ -82,6 +82,7 @@ main (int argc, const char *const *argv)
 
     sigemptyset (&ss);
     sigaddset (&ss, SIGHUP);
+    sigaddset (&ss, SIGPIPE);
     sigprocmask (SIG_BLOCK, &ss, 0);
   }
 
index 4ce6196..138a67b 100644 (file)
@@ -145,10 +145,10 @@ void server::err (const char *format, ...)
       vsnprintf (err, 1024, format, ap);
       va_end (ap);
 
-      send ("MSG"), send (err);
+      log_msg (err);
     }
 
-  send ("END"); send (0);
+  send ("END"), send (0);
   close (fd);
   delete this;
 }
index a4b0510..967556a 100644 (file)
@@ -811,7 +811,7 @@ rxvt_color::set (rxvt_screen *screen, const rgba &color)
           
       got = alloc (screen, rgba (best->red, best->green, best->blue));
 
-      delete colors;
+      delete [] colors;
     }
 #endif
 
index cc228ec..4efbfb2 100644 (file)
--- a/src/xpm.C
+++ b/src/xpm.C
@@ -1,4 +1,4 @@
-/*--------------------------------*-C-*---------------------------------*
+/*----------------------------------------------------------------------*
  * File:       xpm.C
  *----------------------------------------------------------------------*
  *
@@ -58,7 +58,7 @@ rxvt_term::scale_pixmap (const char *geom)
   unsigned int w = 0, h = 0;
   unsigned int n;
   char *p;
-  bgPixmap_t *bgpixmap = & (bgPixmap);
+  bgPixmap_t *bgpixmap = &bgPixmap;
 
 #define MAXLEN_GEOM            sizeof("[10000x10000+10000+10000]")
 
@@ -80,7 +80,7 @@ rxvt_term::scale_pixmap (const char *geom)
     p = strchr (geom, '\0');
 
   n = (p - geom);
-  if (n <= MAXLEN_GEOM)
+  if (n < MAXLEN_GEOM)
     {
       strncpy (str, geom, n);
       str[n] = '\0';