mirror of
https://github.com/tmux/tmux.git
synced 2026-02-18 05:09:30 +00:00
Merge branch 'obsd-master'
This commit is contained in:
4
paste.c
4
paste.c
@@ -106,7 +106,7 @@ paste_is_empty(void)
|
||||
|
||||
/* Get the most recent automatic buffer. */
|
||||
struct paste_buffer *
|
||||
paste_get_top(const char **name)
|
||||
paste_get_top(char **name)
|
||||
{
|
||||
struct paste_buffer *pb;
|
||||
|
||||
@@ -116,7 +116,7 @@ paste_get_top(const char **name)
|
||||
if (pb == NULL)
|
||||
return (NULL);
|
||||
if (name != NULL)
|
||||
*name = pb->name;
|
||||
*name = xstrdup(pb->name);
|
||||
return (pb);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user