mirror of https://git.zx2c4.com/cgit/
truncate buffer before reading empty files
If readfile() reads an empty file, fgets() won't truncate the buffer and it'll still contain the contents of the previously read file. [lh: fixed similar issue in ui-repolist.c] Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Signed-off-by: Lars Hjemli <hjemli@gmail.com>lh/pretty-blob-view
parent
6421dc38db
commit
011f2e9bdd
Loading…
Reference in New Issue