diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-17 18:38:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-17 18:38:12 +0000 |
commit | ff61eee294124bc83f399e0027de1c9d7a9d9e86 (patch) | |
tree | 0629d2233db137ca656fcded725e628f14cfc2ed | |
parent | d5820171b790d3bc4a9584e30be6e0f3098f1791 (diff) | |
download | rtmux-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.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | tmux.h | 6 | ||||
-rw-r--r-- | utf8.c | 8 |
3 files changed, 9 insertions, 9 deletions
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.94 2009-01-15 19:27:31 nicm Exp $ +# $Id: Makefile,v 1.95 2009-01-17 18:38:12 nicm Exp $ .SUFFIXES: .c .o .y .h .PHONY: clean update-index.html upload-index.html @@ -47,7 +47,7 @@ SRCS= tmux.c server.c server-msg.c server-fn.c buffer.c buffer-poll.c status.c \ CC?= cc INCDIRS+= -I. -I- -I/usr/local/include -CFLAGS+= -O0 -DMETA="'${META}'" +CFLAGS+= -DMETA="'${META}'" .ifdef PROFILE # Don't use ccache CC= /usr/bin/gcc @@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.235 2009-01-15 19:27:31 nicm Exp $ */ +/* $Id: tmux.h,v 1.236 2009-01-17 18:38:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1463,8 +1463,8 @@ int session_select(struct session *, int); int session_last(struct session *); /* utf8.c */ -u_int utf8_combine(const u_char [4]); -void utf8_split(u_int, u_char [4]); +u_int utf8_combine(const u_char *); +void utf8_split(u_int, u_char *); int utf8_width(u_int); /* buffer.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; |