diff options
author | jcid <devnull@localhost> | 2007-10-11 20:55:12 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-10-11 20:55:12 +0200 |
commit | fecc92e0ea7103f14aa843ac7236feff8a4c093c (patch) | |
tree | b670182454106625aded0ce3d2e3264672fa83d9 /dlib | |
parent | 9306f65b8de5aad7bc61e39e94bd9d190c3573e8 (diff) |
+- Connected signals to <li> 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
Diffstat (limited to 'dlib')
-rw-r--r-- | dlib/dlib.c | 3 | ||||
-rw-r--r-- | dlib/dlib.h | 3 |
2 files changed, 5 insertions, 1 deletions
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; diff --git a/dlib/dlib.h b/dlib/dlib.h index 6caf7c97..c54ab6ad 100644 --- a/dlib/dlib.h +++ b/dlib/dlib.h @@ -33,7 +33,8 @@ extern "C" { *-- Casts ------------------------------------------------------------------- */ /* TODO: include a void* size test in configure.in */ -#define VOIDP2INT(p) ((int)(p)) +/* (long) works for both 32bit and 64bit */ +#define VOIDP2INT(p) ((long)(p)) #define INT2VOIDP(i) ((void*)(i)) /* |