mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-23 02:32:18 +00:00
Fixed some more warnings.
This commit is contained in:
parent
6b234354cd
commit
9fbb56d12c
@ -23,7 +23,7 @@ int validity_check(char *request) {
|
|||||||
else if(strncmp(request,"console_uptime", (int)strlen(request)) == 0)
|
else if(strncmp(request,"console_uptime", (int)strlen(request)) == 0)
|
||||||
return 4;
|
return 4;
|
||||||
|
|
||||||
else if(strlen(request) > 250)
|
else if(strlen(request) > BUFFER_LENGTH)
|
||||||
return 5;
|
return 5;
|
||||||
|
|
||||||
else if(strncmp(request,"inet_connected", (int)strlen(request)) == 0)
|
else if(strncmp(request,"inet_connected", (int)strlen(request)) == 0)
|
||||||
@ -220,8 +220,12 @@ int main(void) {
|
|||||||
|
|
||||||
char * request;
|
char * request;
|
||||||
|
|
||||||
|
char *request1;
|
||||||
|
|
||||||
request = (char *)malloc(BUFFER_LENGTH);
|
request = (char *)malloc(BUFFER_LENGTH);
|
||||||
|
|
||||||
|
request1 = (char*)malloc(BUFFER_LENGTH);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
||||||
printf("\n>");
|
printf("\n>");
|
||||||
@ -230,6 +234,8 @@ int main(void) {
|
|||||||
|
|
||||||
fflush(stdin);
|
fflush(stdin);
|
||||||
|
|
||||||
|
strcpy(request, request1);
|
||||||
|
|
||||||
console(request);
|
console(request);
|
||||||
} while(FALSE);
|
} while(FALSE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user