mirror of
https://github.com/tmux/tmux.git
synced 2025-04-25 14:35:39 +00:00
Fix constness again, sigh.
This commit is contained in:
parent
fc6f08d5b7
commit
f4c815a1d9
8
cmd.c
8
cmd.c
@ -1223,10 +1223,10 @@ cmd_find_pane_offset(const char *paneptr, struct winlink *wl)
|
|||||||
char *
|
char *
|
||||||
cmd_template_replace(const char *template, const char *s, int idx)
|
cmd_template_replace(const char *template, const char *s, int idx)
|
||||||
{
|
{
|
||||||
char ch;
|
char ch, *buf;
|
||||||
char *buf, *ptr;
|
const char *ptr;
|
||||||
int replaced;
|
int replaced;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
if (strstr(template, "%") == NULL)
|
if (strstr(template, "%") == NULL)
|
||||||
return (xstrdup(template));
|
return (xstrdup(template));
|
||||||
|
Loading…
Reference in New Issue
Block a user