summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index b2f438e475..156c1d59dd 100644
--- a/dir.c
+++ b/dir.c
@@ -929,7 +929,7 @@ push_braces(ary, s, flags)
p++;
}
- if (lbrace) {
+ if (lbrace && rbrace) {
int len = strlen(s);
buf = xmalloc(len + 1);
memcpy(buf, s, lbrace-s);