mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-18 01:20:17 +02:00
Sync OpenBSD patchset 318:
Give each paste buffer a size member instead of requiring them to be zero-terminated.
This commit is contained in:
7
tmux.h
7
tmux.h
@@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.437 2009-09-07 23:37:48 tcunha Exp $ */
|
||||
/* $Id: tmux.h,v 1.438 2009-09-07 23:48:54 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -770,6 +770,7 @@ struct layout_cell {
|
||||
/* Paste buffer. */
|
||||
struct paste_buffer {
|
||||
char *data;
|
||||
size_t size;
|
||||
struct timeval tv;
|
||||
};
|
||||
ARRAY_DECL(paste_stack, struct paste_buffer *);
|
||||
@@ -1255,8 +1256,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 *, char *, u_int);
|
||||
int paste_replace(struct paste_stack *, u_int, char *);
|
||||
void paste_add(struct paste_stack *, u_char *, size_t, u_int);
|
||||
int paste_replace(struct paste_stack *, u_int, u_char *, size_t);
|
||||
|
||||
/* clock.c */
|
||||
extern const char clock_table[14][5][5];
|
||||
|
Reference in New Issue
Block a user