diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-01-25 18:51:28 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-01-25 18:51:28 +0000 |
commit | d60ad6f483ddbe8ee2458aaef37b6f38140d63f5 (patch) | |
tree | 560d15228106845d2132b293318b05f07192377b /tmux.h | |
parent | 32903241a23b2e1f97e19f33086c0f77fd9aaa90 (diff) | |
download | rtmux-d60ad6f483ddbe8ee2458aaef37b6f38140d63f5.tar.gz rtmux-d60ad6f483ddbe8ee2458aaef37b6f38140d63f5.tar.bz2 rtmux-d60ad6f483ddbe8ee2458aaef37b6f38140d63f5.zip |
Make the caller responsible for allocating memory for the paste buffer data
(needed by the load-buffer command when dealing with big files since it'll
prevent tmux from dying due to memory exhaustion). From nicm.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.248 2009-01-23 16:59:14 nicm Exp $ */ +/* $Id: tmux.h,v 1.249 2009-01-25 18:51:28 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1074,8 +1074,8 @@ struct paste_buffer *paste_get_top(struct paste_stack *); struct paste_buffer *paste_get_index(struct paste_stack *, u_int); int paste_free_top(struct paste_stack *); int paste_free_index(struct paste_stack *, u_int); -void paste_add(struct paste_stack *, const char *, u_int); -int paste_replace(struct paste_stack *, u_int, const char *); +void paste_add(struct paste_stack *, char *, u_int); +int paste_replace(struct paste_stack *, u_int, char *); /* clock.c */ void clock_draw(struct screen_write_ctx *, u_int, int); |