From 7427cbe81e3a98852271a248df4a546d2170f297 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 4 Oct 2007 12:27:53 +0000 Subject: [PATCH] n not s. --- cmd-new-session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd-new-session.c b/cmd-new-session.c index d1beed3b..a68072be 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-new-session.c,v 1.4 2007-10-04 10:11:32 nicm Exp $ */ +/* $Id: cmd-new-session.c,v 1.5 2007-10-04 12:27:53 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -58,12 +58,12 @@ cmd_new_session_parse(void **ptr, int argc, char **argv, char **cause) data->flag_detached = 0; data->name = NULL; - while ((opt = getopt(argc, argv, "ds:")) != EOF) { + while ((opt = getopt(argc, argv, "dn:")) != EOF) { switch (opt) { case 'd': data->flag_detached = 1; break; - case 's': + case 'n': data->name = xstrdup(optarg); break; default: