mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
Be more strict about what names and titles we allow and reject them
immediately when possible, but allow # again for those directly set by commands (but not escape sequences). From Barrett Ruth in GitHub issue 5175.
This commit is contained in:
2
paste.c
2
paste.c
@@ -177,7 +177,6 @@ paste_add(const char *prefix, char *data, size_t size)
|
||||
}
|
||||
|
||||
pb = xmalloc(sizeof *pb);
|
||||
|
||||
pb->name = NULL;
|
||||
do {
|
||||
free(pb->name);
|
||||
@@ -297,7 +296,6 @@ paste_set(char *data, size_t size, const char *name, char **cause)
|
||||
}
|
||||
|
||||
pb = xmalloc(sizeof *pb);
|
||||
|
||||
pb->name = newname;
|
||||
|
||||
pb->data = data;
|
||||
|
||||
Reference in New Issue
Block a user