#ifndef NODIAL
case VN_DMSG:
#ifdef BIGBUFOK
- ckstrncpy(vvbuf,dialmsg[dialsta],VVBUFL); /* Safe if src == NULL */
+ ckstrncpy(vvbuf,
+ ((dialsta < 0) ? "(none)" : dialmsg[dialsta]),
+ VVBUFL); /* Safe if src == NULL */
#endif /* BIGBUFOK */
return((char *)vvbuf);
#endif /* NODIAL */
* Fix FTBFS on hurd-i386 (Closes: #671892)
Thanks to Svante Signell.
- * New patch: 020_fix_ptys. Thanks to Mark Wooding (Closes: #660066).
+ * New patch: 020_fix_ptys: pull in ptsname() prototype.
+ Thanks to Mark Wooding (Closes: #660066).
+ * New patch: 030_fix_dialmessage: fix \v(dialmessage) when dialsta
+ is unset. Further thanks to Mark Wooding (Closes: #660276).
* Fix pending l10n issues. Debconf translations:
+ Dutch; (Thanks to Jeroen Schot). Closes: #660843
+ Polish (Thanks to Michał Kułach). Closes: #670771
+ and thanks to Christian Perrier for his usual sterling l10n work.
- -- Ian Beckwith <ianb@debian.org> Tue, 08 May 2012 04:07:28 +0100
+ --
ckermit (302-1) unstable; urgency=low
--- /dev/null
+Index: ckermit/ckuus4.c
+===================================================================
+--- ckermit.orig/ckuus4.c 2012-05-09 02:16:15.000000000 +0100
++++ ckermit/ckuus4.c 2012-05-09 02:16:48.000000000 +0100
+@@ -12681,7 +12681,9 @@
+ #ifndef NODIAL
+ case VN_DMSG:
+ #ifdef BIGBUFOK
+- ckstrncpy(vvbuf,dialmsg[dialsta],VVBUFL); /* Safe if src == NULL */
++ ckstrncpy(vvbuf,
++ ((dialsta < 0) ? "(none)" : dialmsg[dialsta]),
++ VVBUFL); /* Safe if src == NULL */
+ #endif /* BIGBUFOK */
+ return((char *)vvbuf);
+ #endif /* NODIAL */