diff options
Diffstat (limited to 'lib/libmytinfo/buildpath.c')
-rw-r--r-- | lib/libmytinfo/buildpath.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libmytinfo/buildpath.c b/lib/libmytinfo/buildpath.c index cecba42..4e6f529 100644 --- a/lib/libmytinfo/buildpath.c +++ b/lib/libmytinfo/buildpath.c @@ -57,13 +57,8 @@ int type; { if (files >= size) { size += HUNK; - if (path == NULL) - path = (struct term_path *) - malloc(size * sizeof(struct term_path)); - else - path = (struct term_path *) - realloc((anyptr) path, - size * sizeof(struct term_path)); + path = (struct term_path *) reallocf((anyptr) path, + size * sizeof(struct term_path)); if (path == NULL) return 0; } |