aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/qal.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/client/qal.c')
-rw-r--r--code/client/qal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/client/qal.c b/code/client/qal.c
index 0701c5d..cfef944 100644
--- a/code/client/qal.c
+++ b/code/client/qal.c
@@ -176,8 +176,8 @@ qboolean QAL_Init(const char *libname)
#else
char fn[1024];
getcwd(fn, sizeof(fn));
- strncat(fn, "/", sizeof(fn));
- strncat(fn, libname, sizeof(fn));
+ strncat(fn, "/", sizeof(fn) - strlen(fn) - 1);
+ strncat(fn, libname, sizeof(fn) - strlen(fn) - 1);
if( (OpenALLib = OBJLOAD(fn)) == 0 )
{