summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormongo <mongo@iomega>2016-09-06 09:37:13 -0300
committermongo <mongo@iomega>2016-09-06 09:37:13 -0300
commit0adfb54af2b6905d890e7e5c042f9d120ca7a27c (patch)
treef9a423fa3e1e534461dc4c081be16bc49b709a38
parent61f77a5b555d7582cd8517d57e3bb3d03bb3df65 (diff)
Fix load command
-rw-r--r--src/cmds_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmds_command.c b/src/cmds_command.c
index 9113fbc..c5b0fe1 100644
--- a/src/cmds_command.c
+++ b/src/cmds_command.c
@@ -337,7 +337,7 @@ void do_commandmode(struct block * sb) {
} else if ( ! wcsncmp(inputline, L"load", 4) ) {
char cline [BUFFERSIZE];
int force_rewrite = 0;
- wcstombs(line, inputline, BUFFERSIZE);
+ wcstombs(cline, inputline, BUFFERSIZE);
if ( ! wcsncmp(inputline, L"load! ", 6) ) {
force_rewrite = 1;