X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=212a1800e1a32726096c3461c05ee2e9a3bacbfb;hp=1c1b300f2bb0352142f2745ef764077b0bfcf3f2;hb=fff649efb036203c055d72ed74104fb00964ab2a;hpb=2cfb78331c33cb74c6abf357e8221604c3c9ec47 diff --git a/command.c b/command.c index 1c1b300f..212a1800 100644 --- a/command.c +++ b/command.c @@ -28,7 +28,7 @@ #include "afs_command_list.h" /** commands including options must be shorter than this */ -#define MAX_COMMAND_LEN 4096 +#define MAX_COMMAND_LEN 32768 static RC4_KEY rc4_recv_key; static RC4_KEY rc4_send_key; @@ -473,7 +473,7 @@ static struct server_command *get_cmd_ptr(const char *name, char **handler) if (!strcmp(cmd->name, name)) return cmd; /* not found, look for commands supported by afs */ - for (cmd = afs_cmds; cmd; cmd++) + for (cmd = afs_cmds; cmd->name; cmd++) if (!strcmp(cmd->name, name)) return cmd; return NULL; @@ -499,7 +499,7 @@ int com_help(int fd, int argc, char * const * argv) if (ret < 0) return ret; cmd = afs_cmds; - ret = send_list_of_commands(fd, cmd, "afs"); + return send_list_of_commands(fd, cmd, "afs"); } /* argument given for help */ cmd = get_cmd_ptr(argv[1], &handler);