summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/libmumblelink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/libmumblelink.c b/src/client/libmumblelink.c
index 05a24976..87b79a88 100644
--- a/src/client/libmumblelink.c
+++ b/src/client/libmumblelink.c
@@ -147,7 +147,7 @@ void mumble_set_identity(const char* identity)
size_t len;
if (!lm)
return;
- len = MIN(sizeof(lm->identity), strlen(identity)+1);
+ len = MIN(sizeof(lm->identity)/sizeof(wchar_t), strlen(identity)+1);
mbstowcs(lm->identity, identity, len);
}
@@ -165,7 +165,7 @@ void mumble_set_description(const char* description)
size_t len;
if (!lm)
return;
- len = MIN(sizeof(lm->description), strlen(description)+1);
+ len = MIN(sizeof(lm->description)/sizeof(wchar_t), strlen(description)+1);
mbstowcs(lm->description, description, len);
}