diff src/noffle.c @ 377:21300895412f noffle

[svn] * src/common.h,src/control.c,src/noffle.c,src/post.c: Find actual bug causing Debian #187068 and fix that. * src/filter.c: Code should be #ifdef'd out, not commented out.
author bears
date Thu, 03 Apr 2003 18:21:24 +0100
parents fd66260b3479
children 2ad4c1c97734
line wrap: on
line diff
--- a/src/noffle.c	Thu Apr 03 09:29:37 2003 +0100
+++ b/src/noffle.c	Thu Apr 03 18:21:24 2003 +0100
@@ -10,7 +10,7 @@
   received for some seconds (to allow multiple clients connect at the same
   time).
 
-  $Id: noffle.c 505 2003-04-01 10:27:45Z godisch $
+  $Id: noffle.c 517 2003-04-03 17:21:24Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -102,6 +102,7 @@
 	break;
 
     case CANCEL_OK:
+	printf( "Message '%s' cancelled.\n", msgId );
 	break;
 
     case CANCEL_NEEDS_MSG:
@@ -369,7 +370,7 @@
 		    Str xgrp;
 		    int no;
 
-		    if ( sscanf( xref, MAXCHAR_FMT ":%d", xgrp, &no ) != 2 )
+		    if ( sscanf( xref, "%"MAXCHAR_STR"[^:]:%d", xgrp, &no ) != 2 )
 		    {
 			/* Malformed xref - leave article just in case */
 			Log_err( "Malformed Xref: entry in %s: %s",