]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fixed a typo in variable name ...
authorAlexander Barton <alex@barton.de>
Mon, 24 Jan 2005 14:19:04 +0000 (14:19 +0000)
committerAlexander Barton <alex@barton.de>
Mon, 24 Jan 2005 14:19:04 +0000 (14:19 +0000)
src/ngircd/irc-info.c

index f95d5c5dc972deaec4ebdda66bd79cc753c9642e..b0aec128abd0ef80cae946fb78e6448f0b439d6f 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: irc-info.c,v 1.23 2005/01/24 14:17:21 alex Exp $";
+static char UNUSED id[] = "$Id: irc-info.c,v 1.24 2005/01/24 14:19:04 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -794,7 +794,7 @@ IRC_Show_MOTD( CLIENT *Client )
                if( ! fgets( line, sizeof( line ), fd )) break;
 
                line_len = strlen( line );
-               if( line_len > 0 ) pos--;
+               if( line_len > 0 ) line_len--;
                if( line[line_len] == '\n' ) line[line_len] = '\0';
 
                if( ! IRC_WriteStrClient( Client, RPL_MOTD_MSG, Client_ID( Client ), line ))