+2002-08-20 Werner Koch <wk@gnupg.org>
+
+ * vasprintf.c (int_vasprintf): Hack to handle NULL passed for %s.
+
2002-08-20 Marcus Brinkmann <marcus@g10code.de>
* gpgme.c (_gpgme_set_op_info): Append data on subsequent calls.
total_width += 307;
break;
case 's':
- total_width += strlen (va_arg (ap, char *));
+ {
+ char *tmp = va_arg (ap, char *);
+ if (tmp)
+ total_width += strlen (tmp);
+ else /* in case the vsprintf does prints a text */
+ total_width += 25; /* e.g. "(null pointer reference)" */
+ }
break;
case 'p':
case 'n':