[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-committers
Subject:    [ProFTPD-committers] CVS: proftpd/src help.c,1.2,1.3
From:       TJ Saunders <castaglia () users ! sourceforge ! net>
Date:       2007-05-24 15:47:50
Message-ID: E1HrFXa-0003Ge-2o () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/proftp/proftpd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10329/src

Modified Files:
	help.c 
Log Message:

The list of commands displayed for the HELP command was being truncated.
Fix suggested by Richard Gray.


Index: help.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/src/help.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- help.c	25 May 2006 16:55:34 -0000	1.2
+++ help.c	24 May 2007 15:47:47 -0000	1.3
@@ -1,6 +1,6 @@
 /*
  * ProFTPD - FTP server daemon
- * Copyright (c) 2004 The ProFTPD Project team
+ * Copyright (c) 2004-2007 The ProFTPD Project team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -98,7 +98,8 @@
           outa[col++] = pstrcat(cmd->tmp_pool, helps[i].cmd, "*", NULL);
 
         /* 8 rows */
-        if ((i + 1) % 8 == 0) {
+        if ((i + 1) % 8 == 0 ||
+            helps[i+1].cmd == NULL) {
           register unsigned int j;
 
           for (j = 0; j < 8; j++) {


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic