r1036 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jan 23 05:39:50 EST 2007


Author: ludwig
Date: 2007-01-23 05:39:49 -0500 (Tue, 23 Jan 2007)
New Revision: 1036

Modified:
   trunk/code/client/cl_curl.c
Log:
fix wrong use of strncat


Modified: trunk/code/client/cl_curl.c
===================================================================
--- trunk/code/client/cl_curl.c	2007-01-23 10:02:32 UTC (rev 1035)
+++ trunk/code/client/cl_curl.c	2007-01-23 10:39:49 UTC (rev 1036)
@@ -131,8 +131,8 @@
 #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 )
 		{




More information about the quake3-commits mailing list