lowercase all command responses

master
andrew 2009-02-18 02:32:33 -06:00
parent dc52361e30
commit d1b65fa32a
1 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@
#include "cftp.h"
#include "server.h"
#include "filesystem.h"
/*
* Special server debug wrapper.
@ -41,7 +42,7 @@ void server_command(char *msg)
if(!strcmp(command, "ping"))
{
pong = time(NULL);
sprintf(msg, "Pong:%llud", (uintmax_t)pong);
sprintf(msg, "pong:%llud", (uintmax_t)pong);
}
}
@ -63,11 +64,11 @@ void handle_client(int skt, const char *clientip)
}
else if(errno)
{
sprintf(buffer, "ERR:%s", strerror(errno));
sprintf(buffer, "err:%s", strerror(errno));
}
else
{
sprintf(buffer, "ERR:Invalid Command");
sprintf(buffer, "err:Invalid Command");
}
/* send message to client */