From ac97bcc2498fbffe15ca3ca6c89974941fc748bf Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 15 Jan 2017 20:14:37 +0000 Subject: Append needs to go old,new not new,old... --- usr.bin/tmux/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index bfc2d10c678..24cc81ba139 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.24 2017/01/13 11:58:49 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.25 2017/01/15 20:14:36 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -151,7 +151,7 @@ options_set_string(struct options *oo, const char *name, int append, if (o == NULL || !append) value = s; else { - xasprintf(&value, "%s%s", s, o->str); + xasprintf(&value, "%s%s", o->str, s); free(s); } -- cgit v1.2.3