Fix a whoopsie in the URL parameters

This commit is contained in:
X3F200C 2024-06-27 19:42:42 -04:00
parent d70b5accbe
commit 794b9909a2

View File

@ -32,7 +32,7 @@ int upload_location_data(struct location_data *location) {
}
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&timestamp=%lu&sat=%i&bat=%f",
char *location_url_params = g_strdup_printf("?lat=%f&lon=%f&alt=%f&acc=%f&bearing=%f&speed=%f&timestamp=%lu&sat=%i&bat=%f",
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));