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
*/
#define __FIRMWARE__ "2020082105"
#define __FIRMWARE__ "2020082106"
#endif // _CONFIG_H

View File

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