summaryrefslogtreecommitdiff
path: root/src/client/cl_curl.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-03-21 23:55:51 +0000
committerTim Angus <tim@ngus.net>2007-03-21 23:55:51 +0000
commitd899c25c571ed061bba9725cf7b35d492cc6e518 (patch)
tree25268c9b3e381d00c2885c1fec7a54f46f56d93b /src/client/cl_curl.c
parentcb5b4648d45b3f078a6ae3da45707764ca46e241 (diff)
* ioq3-r1052 merge
Diffstat (limited to 'src/client/cl_curl.c')
-rw-r--r--src/client/cl_curl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/cl_curl.c b/src/client/cl_curl.c
index 246095a1..734cc306 100644
--- a/src/client/cl_curl.c
+++ b/src/client/cl_curl.c
@@ -105,7 +105,7 @@ static void *GPA(char *str)
}
else
{
- Com_DPrintf("Loaded symbol %s (0x%08X)\n", str, rv);
+ Com_DPrintf("Loaded symbol %s (0x%p)\n", str, rv);
return rv;
}
}
@@ -131,8 +131,8 @@ qboolean CL_cURL_Init()
#else
char fn[1024];
getcwd(fn, sizeof(fn));
- strncat(fn, "/", sizeof(fn));
- strncat(fn, cl_cURLLib->string, sizeof(fn));
+ strncat(fn, "/", sizeof(fn)-strlen(fn)-1);
+ strncat(fn, cl_cURLLib->string, sizeof(fn)-strlen(fn)-1);
if( (cURLLib = OBJLOAD(fn)) == 0 )
{
@@ -347,7 +347,7 @@ void CL_cURL_PerformDownload(void)
qcurl_easy_getinfo(msg->easy_handle, CURLINFO_RESPONSE_CODE,
&code);
- Com_Error(ERR_DROP, "Download Error: %s Code: %d URL: %s",
+ Com_Error(ERR_DROP, "Download Error: %s Code: %ld URL: %s",
qcurl_easy_strerror(msg->data.result),
code, clc.downloadURL);
}