aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/histedit.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2010-10-13 23:29:09 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2010-10-13 23:29:09 +0000
commit7cfe69417cad6dc797729aaa60dc538aa194e1ba (patch)
tree21a2e1390b3cbd0e8029830cf4195a75dba0d1e7 /bin/sh/histedit.c
parentbf73d4d28e9706ed7410e64bc2b9e0c4eb55c385 (diff)
downloadsrc-7cfe69417cad6dc797729aaa60dc538aa194e1ba.tar.gz
src-7cfe69417cad6dc797729aaa60dc538aa194e1ba.zip
Notes
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r--bin/sh/histedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index 7773ad8d5ff2..dab69f1b16b1 100644
--- a/bin/sh/histedit.c
+++ b/bin/sh/histedit.c
@@ -418,7 +418,7 @@ fc_replace(const char *s, char *p, char *r)
} else
STPUTC(*s++, dest);
}
- STACKSTRNUL(dest);
+ STPUTC('\0', dest);
dest = grabstackstr(dest);
return (dest);