diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-12 00:05:00 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-12 00:05:00 +0300 |
commit | f569a6f2628b9ddef4dfb4424aff2dad644a8f19 (patch) | |
tree | 6d6e5b03bc97198c2002703591fe5e751978130c /src/meta.c | |
parent | 590e208c40797206fd6a93651fc59e0b68eeb545 (diff) | |
download | wydawca-f569a6f2628b9ddef4dfb4424aff2dad644a8f19.tar.gz wydawca-f569a6f2628b9ddef4dfb4424aff2dad644a8f19.tar.bz2 |
Improve the txtacc interface.
Diffstat (limited to 'src/meta.c')
-rw-r--r-- | src/meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -130,13 +130,13 @@ meta_expand_string (const char *string, struct metadef *def, void *data, | |||
130 | } | 130 | } |
131 | } | 131 | } |
132 | else | 132 | else |
133 | txtacc_grow (acc, p, 1); | 133 | txtacc_grow (acc, p, 1); |
134 | } | 134 | } |
135 | txtacc_1grow (acc, 0); | 135 | txtacc_1grow (acc, 0); |
136 | res = xstrdup (txtacc_finish (acc)); | 136 | res = txtacc_finish (acc, 1); |
137 | txtacc_free (acc); | 137 | txtacc_free (acc); |
138 | return res; | 138 | return res; |
139 | } | 139 | } |
140 | 140 | ||
141 | void | 141 | void |
142 | meta_free (struct metadef *def) | 142 | meta_free (struct metadef *def) |