Commit Graph

4 Commits (cccf01cb9aa45769e2e9d41c1e8e98a6502a98e0)

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.
6 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