From d60ad6f483ddbe8ee2458aaef37b6f38140d63f5 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sun, 25 Jan 2009 18:51:28 +0000 Subject: 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. --- tmux.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index a0590fdd..f2bb8c12 100644 --- a/tmux.h +++ b/tmux.h @@ -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 @@ -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); -- cgit