X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fanno.c;h=33d2b49dec03d53c781946c15098b9f92a219862;hp=66e62c52d623c52e47a02fb53f79a08c339ff5d0;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=b78007de9802005825390bee71dfce2306b42519 diff --git a/uip/anno.c b/uip/anno.c index 66e62c5..33d2b49 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -53,6 +53,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + /* ** static prototypes */ @@ -181,7 +183,7 @@ main(int argc, char **argv) if (folder) adios(EX_USAGE, NULL, "only one folder at a time!"); else - folder = getcpy(expandfol(cp)); + folder = mh_xstrdup(expandfol(cp)); } else if (*cp == '/' || *cp == '.') { if (file) adios(EX_USAGE, NULL, "only one file at a time!"); @@ -342,7 +344,7 @@ annolist(char *file, unsigned char *comp, int number) } while (*field && *field != '-'); - free(field); + mh_free0(&field); fclose(fp); return; @@ -542,7 +544,7 @@ dodel(int fd, unsigned char *comp, char *text, FILE *tmp, int number) } while (*field && *field != '-'); - free(field); + mh_free0(&field); fflush(tmp); fflush(fp); /* The underlying fd will be closed by lkclose() */