aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sam.c b/sam.c
index de547d1..f1d57c5 100644
--- a/sam.c
+++ b/sam.c
@@ -597,7 +597,7 @@ static char *parse_until(const char **s, const char *until, const char *escchars
buffer_terminate(&buf);
- return buffer_move(&buf);
+ return buf.data;
}
static char *parse_delimited(const char **s, int type) {
@@ -645,7 +645,7 @@ static char *parse_text(const char **s, Count *count) {
return NULL;
}
- return buffer_move(&buf);
+ return buf.data;
}
static char *parse_shellcmd(Vis *vis, const char **s) {
@@ -683,7 +683,7 @@ static char *parse_cmdname(const char **s) {
buffer_terminate(&buf);
- return buffer_move(&buf);
+ return buf.data;
}
static Regex *parse_regex(Vis *vis, const char **s) {