summaryrefslogtreecommitdiff
path: root/ui-stats.c
diff options
context:
space:
mode:
authorSimon Arlott <simon@fire.lp0.eu>2009-03-07 00:06:24 +0000
committerLars Hjemli <hjemli@gmail.com>2009-08-18 14:27:41 +0200
commit011f2e9bdddcbfe65da397629bca87d167313a28 (patch)
tree606b84a7b0211a6c4536bb508d57d4f19d20c3ab /ui-stats.c
parent6421dc38db02eff8d3ada93e87a2f7e5292af131 (diff)
downloadcgit-011f2e9bdddcbfe65da397629bca87d167313a28.tar.gz
cgit-011f2e9bdddcbfe65da397629bca87d167313a28.tar.bz2
cgit-011f2e9bdddcbfe65da397629bca87d167313a28.zip
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
msg'> 2013-06-18i3: workspaces.py -- small cosmetic changesRené 'Necoro' Neumann1-3/+3 2013-06-18i3: Use i3-msg 'exec …' for processes, not sh.CommandRené 'Necoro' Neumann2-3/+8 2013-06-17i3: workspaces.py -- python errorRené 'Necoro' Neumann1-0/+1 2013-06-17i3: workspaces.py -- python errorRené 'Necoro' Neumann1-1/+1 2013-06-17i3 changesRené 'Necoro' Neumann2-2/+2 2013-06-14i3: New 'open new workspace with a terminal on'René 'Necoro' Neumann2-15/+31 2013-06-14Vimperator: Do not open popups in a new window -- sucks with tiling WMsRené 'Necoro' Neumann1-1/+1 2013-06-08Cleanup X startup filesRené 'Necoro' Neumann3-19/+42 2013-06-07i3: better renameRené 'Necoro' Neumann2-3/+17 2013-06-07i3: Some keybinding changes.René 'Necoro' Neumann1-5/+6 2013-06-07i3: Overhaul workspaces.pyRené 'Necoro' Neumann1-27/+19 2013-06-06i3: use $mod+t for tabbed instead of $mod+wRené 'Necoro' Neumann1-1/+1 2013-06-06i3: unify scripts into oneRené 'Necoro' Neumann6-49/+1771 2013-06-06i3: new temporary workspaceRené Neumann2-1/+27 2013-06-06Allow 'klass' in i3.py descriptionsRené Neumann1-0/+4 2013-06-04i3: rename workspaceRené Neumann1-0/+3 2013-06-03Some more greek chars / math product and sumRené 'Necoro' Neumann1-0/+6 2013-06-02Fix rules in i3-config. Somehow 'set' expands variables twice :-/René Neumann1-14/+11 2013-06-01Overhaul xlock.shRené 'Necoro' Neumann1-4/+8 2013-06-01Better workspace chooserRené 'Necoro' Neumann3-2/+581 2013-06-01FF/TB/Pidgin stuffRené 'Necoro' Neumann1-26/+45 2013-06-01More i3René 'Necoro' Neumann1-2/+11 2013-06-01FixesRené 'Necoro' Neumann2-2/+2