Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2026-02-12 11:10:01 +00:00
17 changed files with 204 additions and 98 deletions

View File

@@ -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);
}