From fecc92e0ea7103f14aa843ac7236feff8a4c093c Mon Sep 17 00:00:00 2001 From: jcid Date: Thu, 11 Oct 2007 20:55:12 +0200 Subject: +- Connected signals to
  • elements (fixes links within lists). - Enabled text and background color-choice in preferences. - Enabled clicking over image links. Patches: place +- Fixed a va_list-related SEGFAULT on 64bit-arch in dStr_vsprintfa(). Patch: Vincent Thomasset +- Fixed void to int conversions for 64bit-arch. Patch: Jorge Arellano, higuita +- Added a strndup() replacement in dw2 Patch: Alexander Becher, Johannes Hofmann, Jorge Arellano +- Fixed calcHashValue() to only return non-negative numbers (was SEGFAULT). - Improved scrolling performance on large pages by copying screen data instead of rendering. Patches: Johannes Hofmann --- dlib/dlib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dlib/dlib.c') diff --git a/dlib/dlib.c b/dlib/dlib.c index bba1cc5e..9e831756 100644 --- a/dlib/dlib.c +++ b/dlib/dlib.c @@ -345,8 +345,11 @@ void dStr_vsprintfa (Dstr *ds, const char *format, va_list argp) int n, n_sz; if (ds && format) { + va_list argp2; /* Needed in case of looping on non-32bit arch */ while (1) { + va_copy(argp2, argp); n = vsnprintf(ds->str + ds->len, ds->sz - ds->len, format, argp); + va_end(argp2); if (n > -1 && n < ds->sz - ds->len) { ds->len += n; /* Success! */ break; -- cgit v1.2.3