diff options
Diffstat (limited to 'Projects/Webserver/Lib/TELNETServerApp.c')
-rw-r--r-- | Projects/Webserver/Lib/TELNETServerApp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Projects/Webserver/Lib/TELNETServerApp.c b/Projects/Webserver/Lib/TELNETServerApp.c index cabf52756..720f7d14c 100644 --- a/Projects/Webserver/Lib/TELNETServerApp.c +++ b/Projects/Webserver/Lib/TELNETServerApp.c @@ -79,15 +79,15 @@ void TELNETServerApp_Callback(void) {
case TELNET_STATE_SendHeader:
/* Copy over and send the TELNET welcome message upon first connection */
- strncpy_P(AppData, WelcomeHeader, strlen_P(WelcomeHeader));
- uip_send(AppData, strlen_P(WelcomeHeader));
+ strcpy_P(AppData, WelcomeHeader);
+ uip_send(AppData, strlen(AppData));
AppState->TELNETServer.NextState = TELNET_STATE_SendMenu;
break;
case TELNET_STATE_SendMenu:
/* Copy over and send the TELNET menu to the client */
- strncpy_P(AppData, TELNETMenu, strlen_P(TELNETMenu));
- uip_send(AppData, strlen_P(TELNETMenu));
+ strcpy_P(AppData, TELNETMenu);
+ uip_send(AppData, strlen(AppData));
AppState->TELNETServer.NextState = TELNET_STATE_GetCommand;
break;
|