summaryrefslogtreecommitdiff
path: root/src/client/libmumblelink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/libmumblelink.c')
-rw-r--r--src/client/libmumblelink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/libmumblelink.c b/src/client/libmumblelink.c
index 25ca6786..48a18065 100644
--- a/src/client/libmumblelink.c
+++ b/src/client/libmumblelink.c
@@ -116,7 +116,7 @@ int mumble_link(const char* name)
close(shmfd);
#endif
memset(lm, 0, sizeof(LinkedMem));
- mbstowcs(lm->name, name, sizeof(lm->name));
+ mbstowcs(lm->name, name, sizeof(lm->name) / sizeof(wchar_t));
return 0;
}