Commit Graph

4 Commits

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.
2019-04-23 12:34:32 +02:00
Leah Neukirchen
66d0eff12f style 2017-08-31 17:30:17 +02:00
Christian Neukirchen
631b6c7c82 slurp: zero-terminate buffer 2016-10-06 16:47:13 +02:00
Christian Neukirchen
b4a8090f75 seq: slurp the file instead of mmap
mmap is not robust when there are writes possible.
2016-10-05 14:44:36 +02:00