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:45:18 +0000
committerJames Booth <boothj5@gmail.com>2015-01-15 23:45:18 +0000
commit9083bfdb5c7fa166802f1839442a045ecb61f7e9 (patch)
tree0b26e03c75b51b6f6c1811969a2d4c54df72bbdc /src/command
parentbb11dc097320443c810ea0572f7b988bfa48e4a4 (diff)
parent51105720ab32faa4548655266ca0ae4c661f0701 (diff)
downloadprofani-tty-9083bfdb5c7fa166802f1839442a045ecb61f7e9.tar.gz
Merge branch 'master' into inp-utf8
Conflicts:
	src/ui/inputwin.c
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