diff --git a/firmware/main/frame_client.c b/firmware/main/frame_client.c index 8cef606..754e209 100644 --- a/firmware/main/frame_client.c +++ b/firmware/main/frame_client.c @@ -608,7 +608,14 @@ static esp_err_t show_menu_level(const frame_config_t *cfg, fetch_action_t actio char location_line1[32]; char location_line2[32]; char taken_at[32]; - char share_url[256]; + /* Wider than the other URL buffers in this file: unlike a fixed path, + * this one stacks toolsserver (up to 128) + "/frame/share/" + an + * asset_id (up to 47) + "?token=" + an access_token (up to 64) -- + * worst case ~266 bytes, which a 256-byte buffer could silently + * truncate the token off of (build_url()'s bounds check avoids an + * overflow, but a truncated/dropped token still means the resulting + * request just 401s with no obvious cause). */ + char share_url[320]; fetch_photo_info(cfg, location_line1, sizeof(location_line1), location_line2, sizeof(location_line2), taken_at, sizeof(taken_at), share_url, sizeof(share_url)); diff --git a/firmware/main/root.html b/firmware/main/root.html index 589ebe9..42c7a08 100644 --- a/firmware/main/root.html +++ b/firmware/main/root.html @@ -76,26 +76,30 @@
Please connect me to your local wifi network
+