Commit Graph

4 Commits (master)

Author SHA1 Message Date
Leah Neukirchen 5b0755ca68 slurp: don't special-case empty files, instead behave like strdup("")
This allows the caller to call free(3) in any case.
5 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Christian Neukirchen 631b6c7c82 slurp: zero-terminate buffer 8 years ago
Christian Neukirchen b4a8090f75 seq: slurp the file instead of mmap
mmap is not robust when there are writes possible.
8 years ago