aboutsummaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-17 18:38:12 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-17 18:38:12 +0000
commitff61eee294124bc83f399e0027de1c9d7a9d9e86 (patch)
tree0629d2233db137ca656fcded725e628f14cfc2ed /utf8.c
parentd5820171b790d3bc4a9584e30be6e0f3098f1791 (diff)
downloadrtmux-ff61eee294124bc83f399e0027de1c9d7a9d9e86.tar.gz
rtmux-ff61eee294124bc83f399e0027de1c9d7a9d9e86.tar.bz2
rtmux-ff61eee294124bc83f399e0027de1c9d7a9d9e86.zip
Don't use [4] since they are confusing and use the right size for memset. DOH.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utf8.c b/utf8.c
index 5e1c6b94..87578a6d 100644
--- a/utf8.c
+++ b/utf8.c
@@ -1,4 +1,4 @@
-/* $Id: utf8.c,v 1.2 2008-09-25 20:08:56 nicm Exp $ */
+/* $Id: utf8.c,v 1.3 2009-01-17 18:38:12 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -23,7 +23,7 @@
#include "tmux.h"
u_int
-utf8_combine(const u_char data[4])
+utf8_combine(const u_char *data)
{
u_int uv;
@@ -46,9 +46,9 @@ utf8_combine(const u_char data[4])
}
void
-utf8_split(u_int uv, u_char data[4])
+utf8_split(u_int uv, u_char *data)
{
- memset(data, 0xff, sizeof data);
+ memset(data, 0xff, 4);
if (uv <= 0x7f)
data[0] = uv;