Merge branch 'obsd-master' into master

This commit is contained in:
Thomas Adam 2021-08-17 14:01:16 +01:00
commit 7869ec87e0
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ cmd_confirm_before_exec(struct cmd *self, struct cmdq_item *item)
free(copy); free(copy);
} }
cdata = xmalloc(sizeof *cdata); cdata = xcalloc(1, sizeof *cdata);
cdata->cmd = xstrdup(args->argv[0]); cdata->cmd = xstrdup(args->argv[0]);
cmd_get_source(self, &cdata->pi.file, &cdata->pi.line); cmd_get_source(self, &cdata->pi.file, &cdata->pi.line);

2
tty.c
View File

@ -2043,7 +2043,7 @@ tty_cmd_syncstart(struct tty *tty, const struct tty_ctx *ctx)
{ {
if (ctx->num == 0x11) { if (ctx->num == 0x11) {
/* /*
* This is an overlay and a command that moves, the cursor so * This is an overlay and a command that moves the cursor so
* start synchronized updates. * start synchronized updates.
*/ */
tty_sync_start(tty); tty_sync_start(tty);