summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/xmalloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* asprintf returns -1, not an arbitrary value < 0. Also upon error thederaadt2019-06-281-2/+2
| | | | | | | (very sloppy specification) leaves an undefined value in *ret, so it is wrong to inspect it, the error condition is enough. discussed a little with nicm, and then much more with millert until we were exasperated
* Merge xmalloc.[ch] files across base, skipping OpenSSH for now.tobias2015-11-171-12/+7
| | | | ok nicm
* Use strdup in xstrdup from Fritjof Bornebusch. While here, remove xfreenicm2015-06-171-14/+3
| | | | which is unused.
* New implementation of the file(1) utility. This is a simplified,nicm2015-04-241-0/+103
modernised version with a nearly complete magic(5) parser but omits some of the complex builtin tests (notably ELF) and has a reduced set of options. ok deraadt