Compare commits

..

2 Commits

Author SHA1 Message Date
anschrammh
a67354cd84 Added a comment about why not using the strdup c function 2020-12-17 08:20:31 +01:00
anschrammh
2cf047f4ff Updated version history 2020-12-17 08:19:33 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
AbstractParser::AbstractParser(const char *resource) : _resource(NULL)
{
//Could use strdup instead, but has bigger flash memory footprint :(, sticking to this technique instead.
_resource = (char *) malloc((strlen(resource) * sizeof(char)) + 1); //+1 for the string terminating character
strcpy(_resource, resource);
}

View File

@ -37,6 +37,6 @@
#define SOFT_VERSION "1.6.5" //Removed the sd card mount and unmount api calls, replaced with the sdCardAction api call which takes a parameter (does the same thing)
#define SOFT_VERSION "1.6.6" //Removed useless INIT state that was like the LINE_BREAK state and added '-' as an allowed PARAM and VALUE character
#define SOFT_VERSION "1.6.7" //Changed the way we store and return the 3 letter month abbreviation
#define SOFT_VERSION "1.6.8" //Finally fixed the random crash issue concerning the servers :)
#endif //VERSIONS_H