Fixed some more warnings.

This commit is contained in:
MissValeska 2014-08-17 09:51:19 -07:00
parent 6b234354cd
commit 9fbb56d12c

View File

@ -23,7 +23,7 @@ int validity_check(char *request) {
else if(strncmp(request,"console_uptime", (int)strlen(request)) == 0)
return 4;
else if(strlen(request) > 250)
else if(strlen(request) > BUFFER_LENGTH)
return 5;
else if(strncmp(request,"inet_connected", (int)strlen(request)) == 0)
@ -220,8 +220,12 @@ int main(void) {
char * request;
char *request1;
request = (char *)malloc(BUFFER_LENGTH);
request1 = (char*)malloc(BUFFER_LENGTH);
do {
printf("\n>");
@ -230,6 +234,8 @@ int main(void) {
fflush(stdin);
strcpy(request, request1);
console(request);
} while(FALSE);