From 43285fefafed6821fb277c71da7b28d5291d87dd Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 27 Oct 2011 21:32:28 +0000 Subject: * Fix various warnings with GCC and clang --- src/client/libmumblelink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') 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; } -- cgit