Fix a whoopsie in the URL parameters
This commit is contained in:
parent
d70b5accbe
commit
794b9909a2
@ -32,7 +32,7 @@ int upload_location_data(struct location_data *location) {
|
|||||||
}
|
}
|
||||||
size_t url_base_length = strlen(location_url_base);
|
size_t url_base_length = strlen(location_url_base);
|
||||||
|
|
||||||
char *location_url_params = g_strdup_printf("&lat=%f&lon=%f&alt=%f&acc=%f&bearing=%f&speed=%f×tamp=%lu&sat=%i&bat=%f",
|
char *location_url_params = g_strdup_printf("?lat=%f&lon=%f&alt=%f&acc=%f&bearing=%f&speed=%f×tamp=%lu&sat=%i&bat=%f",
|
||||||
location->latitude, location->longitude, location->altitude, location->accuracy, location->heading, location->speed, location->timestamp, 0, 100.0F);
|
location->latitude, location->longitude, location->altitude, location->accuracy, location->heading, location->speed, location->timestamp, 0, 100.0F);
|
||||||
|
|
||||||
char *location_url = calloc(url_base_length + strlen(location_url_params) + 1, sizeof(char));
|
char *location_url = calloc(url_base_length + strlen(location_url_params) + 1, sizeof(char));
|
||||||
|
Loading…
Reference in New Issue
Block a user