diff options
Diffstat (limited to 'src/txtacc.c')
-rw-r--r-- | src/txtacc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txtacc.c b/src/txtacc.c index ee00170..5b9a197 100644 --- a/src/txtacc.c +++ b/src/txtacc.c | |||
@@ -18,6 +18,7 @@ | |||
18 | # include <config.h> | 18 | # include <config.h> |
19 | #endif | 19 | #endif |
20 | #include <string.h> | 20 | #include <string.h> |
21 | #include <stdlib.h> | ||
21 | #include "grecs.h" | 22 | #include "grecs.h" |
22 | 23 | ||
23 | struct grecs_txtacc_entry | 24 | struct grecs_txtacc_entry |
@@ -73,7 +74,7 @@ static void | |||
73 | grecs_txtacc_entry_tailor(struct grecs_txtacc_entry *ent) | 74 | grecs_txtacc_entry_tailor(struct grecs_txtacc_entry *ent) |
74 | { | 75 | { |
75 | if (ent->size > ent->len) { | 76 | if (ent->size > ent->len) { |
76 | char *p = realloc(ent->buf, ent->len); | 77 | char *p = grecs_realloc(ent->buf, ent->len); |
77 | if (!p) | 78 | if (!p) |
78 | return; | 79 | return; |
79 | ent->buf = p; | 80 | ent->buf = p; |