fix wrong use of strncat

This commit is contained in:
Ludwig Nussel 2007-01-23 10:39:49 +00:00
parent 09034c4c64
commit 4b9df8d9e9

View file

@ -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 )
{