| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/client.c')
| -rw-r--r-- | src/client.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/client.c b/src/client.c index 6e6b036..6a4e08d 100644 --- a/src/client.c +++ b/src/client.c @@ -107,12 +107,6 @@ static int send_commands for (i = 3; i < argc;) { - - if (fputs(argv[i], socket) == EOF) - { - // TODO: error - } - if (relabsd_parameters_argument_count_for(argv[i], &j) < 0) { RELABSD_FATAL("Unknown option '%s'.", argv[i]); @@ -121,6 +115,11 @@ static int send_commands return -1; } + if (fputs(argv[i], socket) == EOF) + { + // TODO: error + } + if (fputc('\n', socket) == EOF) { // TODO: error |


