fix pointer issue

This commit is contained in:
sharandac
2020-08-21 10:55:26 +02:00
parent 7074ee64f4
commit b87b342322
4 changed files with 4 additions and 4 deletions

View File

@@ -32,6 +32,6 @@
/* /*
* firmeware version string * firmeware version string
*/ */
#define __FIRMWARE__ "2020082105" #define __FIRMWARE__ "2020082106"
#endif // _CONFIG_H #endif // _CONFIG_H

View File

@@ -74,7 +74,7 @@ int64_t update_check_new_version( char *url ) {
} }
firmwarehost = tmp_firmwarehost; firmwarehost = tmp_firmwarehost;
} }
strlcpy( firmwarehost, doc["host"], sizeof( firmwarehost ) ); strcpy( firmwarehost, doc["host"] );
log_i("firmwarehost: %s", firmwarehost ); log_i("firmwarehost: %s", firmwarehost );
} }
@@ -94,7 +94,7 @@ int64_t update_check_new_version( char *url ) {
} }
firmwarefile = tmp_firmwarefile; firmwarefile = tmp_firmwarefile;
} }
strlcpy( firmwarefile, doc["file"], sizeof( firmwarefile ) ); strcpy( firmwarefile, doc["file"] );
log_i("firmwarefile: %s", firmwarefile ); log_i("firmwarefile: %s", firmwarefile );
} }

Binary file not shown.

View File

@@ -1 +1 @@
{"version":"2020082105","host":"http://www.neo-guerillaz.de","file":"ttgo-t-watch2020_v1.ino.bin"} {"version":"2020082106","host":"http://www.neo-guerillaz.de","file":"ttgo-t-watch2020_v1.ino.bin"}