diff --git a/src/http-mserv.c b/src/http-mserv.c index 7d675fe3e..813d9c72a 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -221,9 +221,9 @@ HMS_connect (const char *format, ...) #ifndef NO_IPV6 if (!M_CheckParm("-ipv6")) #endif - curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + curl_easy_setopt(curl, CURLOPT_IPRESOLVE, (long)CURL_IPRESOLVE_V4); - curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value); + curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long)cv_masterserver_timeout.value); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read); curl_easy_setopt(curl, CURLOPT_WRITEDATA, buffer); @@ -340,7 +340,8 @@ HMS_unlist (void) if (! hms) return 0; - curl_easy_setopt(hms->curl, CURLOPT_CUSTOMREQUEST, "POST"); + curl_easy_setopt(hms->curl, CURLOPT_POST, (long)1); + curl_easy_setopt(hms->curl, CURLOPT_POSTFIELDSIZE, (long)0); ok = HMS_do(hms); HMS_end(hms); diff --git a/src/s_sound.c b/src/s_sound.c index 0900114d9..f1fe5762d 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -1695,7 +1695,7 @@ void S_ShowMusicCredit(void) UINT8 i = 0; musicdef_t *def = S_FindMusicDef(music_name, &i); - char credittext[128] = ""; + char credittext[128+1] = ""; char *work = NULL; size_t len = 128, worklen; INT32 widthused = (3*BASEVIDWIDTH/4) - 7, workwidth;