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
$(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 $<
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);
sigemptyset (&ss);
sigaddset (&ss, SIGHUP);
+ sigaddset (&ss, SIGPIPE);
sigprocmask (SIG_BLOCK, &ss, 0);
}
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;
}
got = alloc (screen, rgba (best->red, best->green, best->blue));
- delete colors;
+ delete [] colors;
}
#endif
-/*--------------------------------*-C-*---------------------------------*
+/*----------------------------------------------------------------------*
* File: xpm.C
*----------------------------------------------------------------------*
*
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]")
p = strchr (geom, '\0');
n = (p - geom);
- if (n <= MAXLEN_GEOM)
+ if (n < MAXLEN_GEOM)
{
strncpy (str, geom, n);
str[n] = '\0';