diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-03 11:31:59 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-03 11:31:59 +0000 |
commit | b9cf4815e5445db2d805117c90adaa1755c853cf (patch) | |
tree | 536170467a2ad8129ff0cbb24faabd76bbf83f4f /Projects/Webserver/Lib/TELNETServerApp.c | |
parent | 16ea5aa7a2e5f326f8ff129e740a19bb3fb7829f (diff) | |
download | lufa-b9cf4815e5445db2d805117c90adaa1755c853cf.tar.gz lufa-b9cf4815e5445db2d805117c90adaa1755c853cf.tar.bz2 lufa-b9cf4815e5445db2d805117c90adaa1755c853cf.zip |
Disable uIP connection polling for now - this seems to corrupt the buffers.
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;
|