Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NySNICInterface mbed-rtos mbed
Fork of RESTServerSample by
Revision 7:bdd579baaa91, committed 2015-02-15
- Comitter:
- yi
- Date:
- Sun Feb 15 05:12:27 2015 +0000
- Parent:
- 6:d148c8a213ef
- Child:
- 8:babc71c8c498
- Commit message:
- fixed
Changed in this revision
| control_motors.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/control_motors.cpp Sun Feb 15 03:38:49 2015 +0000
+++ b/control_motors.cpp Sun Feb 15 05:12:27 2015 +0000
@@ -4,7 +4,10 @@
bool okFlag = false;
- char* str = strtok(request+1,"/");
+ char req[1024];
+ strcpy(req, request + 1);
+
+ char* str = strtok(req, "/");
if(strcmp(str, "api") == 0){
str = strtok(NULL,"/");
