summaryrefslogtreecommitdiff
path: root/src/client/qal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/qal.c')
-rw-r--r--src/client/qal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qal.c b/src/client/qal.c
index b206881f..4c04bd41 100644
--- a/src/client/qal.c
+++ b/src/client/qal.c
@@ -177,8 +177,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 )
{