about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-15 23:43:22 +0000
committerJames Booth <boothj5@gmail.com>2015-01-15 23:43:22 +0000
commit51105720ab32faa4548655266ca0ae4c661f0701 (patch)
treeac3a4d08c84a4acd29729c6506aac2251c3b528f /src/command
parent65fc4bcd9ff8e92c0f87e1c9520974a805a9ceac (diff)
downloadprofani-tty-51105720ab32faa4548655266ca0ae4c661f0701.tar.gz
Moved input line to inputwin
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/command/command.c b/src/command/command.c
index fb2ef9c5..5535c022 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1772,9 +1772,10 @@ cmd_process_input(char *inp)
 void
 cmd_execute_connect(const char * const account)
 {
-    char inp[INP_WIN_MAX];
-    snprintf(inp, sizeof(inp), "%s %s", "/connect", account);
-    cmd_process_input(inp);
+    GString *command = g_string_new("/connect ");
+    g_string_append(command, account);
+    cmd_process_input(command->str);
+    g_string_free(command, TRUE);
 }
 
 static gboolean