comparison 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
comparison
equal deleted inserted replaced
376:643a944ef803 377:21300895412f
8 not as server. If noffle runs as server, locking is performed while 8 not as server. If noffle runs as server, locking is performed while
9 executing NNTP commands, but temporarily released if no new command is 9 executing NNTP commands, but temporarily released if no new command is
10 received for some seconds (to allow multiple clients connect at the same 10 received for some seconds (to allow multiple clients connect at the same
11 time). 11 time).
12 12
13 $Id: noffle.c 505 2003-04-01 10:27:45Z godisch $ 13 $Id: noffle.c 517 2003-04-03 17:21:24Z bears $
14 */ 14 */
15 15
16 #if HAVE_CONFIG_H 16 #if HAVE_CONFIG_H
17 #include <config.h> 17 #include <config.h>
18 #endif 18 #endif
100 case CANCEL_NO_SUCH_MSG: 100 case CANCEL_NO_SUCH_MSG:
101 printf( "No such message '%s'.\n", msgId ); 101 printf( "No such message '%s'.\n", msgId );
102 break; 102 break;
103 103
104 case CANCEL_OK: 104 case CANCEL_OK:
105 printf( "Message '%s' cancelled.\n", msgId );
105 break; 106 break;
106 107
107 case CANCEL_NEEDS_MSG: 108 case CANCEL_NEEDS_MSG:
108 printf( "Message '%s' cancelled in local database only.\n", msgId ); 109 printf( "Message '%s' cancelled in local database only.\n", msgId );
109 break; 110 break;
367 xref = Itl_next( xrefs) ) 368 xref = Itl_next( xrefs) )
368 { 369 {
369 Str xgrp; 370 Str xgrp;
370 int no; 371 int no;
371 372
372 if ( sscanf( xref, MAXCHAR_FMT ":%d", xgrp, &no ) != 2 ) 373 if ( sscanf( xref, "%"MAXCHAR_STR"[^:]:%d", xgrp, &no ) != 2 )
373 { 374 {
374 /* Malformed xref - leave article just in case */ 375 /* Malformed xref - leave article just in case */
375 Log_err( "Malformed Xref: entry in %s: %s", 376 Log_err( "Malformed Xref: entry in %s: %s",
376 msgId, xref); 377 msgId, xref);
377 toDelete = FALSE; 378 toDelete = FALSE;