Skip to content

Commit a775c16

Browse files
TheGreatRamblerTheGreatRambler
authored andcommitted
Fix URL handling
1 parent 39b2737 commit a775c16

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.vscode/launch.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
"request": "launch",
4343
"program": "${workspaceFolder}/bin/miitoumii",
4444
"args": [
45-
"-i",
46-
"3DS_Test_Female.jpg",
47-
"-x"
45+
"-i","https://www.miicharacters.com/miis/qr_thumb/1972_peterg.jpg","-b","-x"
4846
],
4947
"logging": {
5048
"moduleLoad": true,

preparelinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sudo apt-get install pkg-config -y
22
sudo apt-get install libfmt-dev -y
3-
sudo apt-get install libcurl4-openssl-dev -y
3+
sudo apt-get install libcurl4-gnutls-dev -y
44
./preparecommon.sh

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ int main (int argc, char* argv[]) {
315315
if (curl) {
316316
FILE* fp = fopen (filename.c_str (), "wb");
317317
curl_easy_setopt (curl, CURLOPT_URL, inputFileString.c_str ());
318-
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, [] (void* ptr, size_t size, size_t nmemb, FILE* stream) {
318+
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, +[](void* ptr, size_t size, size_t nmemb, FILE* stream) {
319319
size_t written = fwrite (ptr, size, nmemb, stream);
320320
return written;
321321
});

0 commit comments

Comments
 (0)