mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
fix wrong use of strncat
This commit is contained in:
parent
09034c4c64
commit
4b9df8d9e9
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue