xkbcomp: Use fread() instead of getc()
authorDaniel Stone <daniel@fooishbar.org>
Tue, 15 Jun 2010 18:39:15 +0000 (19:39 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 22 Jun 2010 14:56:56 +0000 (15:56 +0100)
commitacc467de9f8d96beea6d93a31fdb95b3a551cd11
tree422eccebbe67f92c3e60f0b7155ab3aa926df5c9
parent240a0c3409f2cd81394188175499087c37793a55
xkbcomp: Use fread() instead of getc()

So, it turns out that if you're parsing a fairly large amount of data,
using getc() to get all the input rather than, say, read(), is some kind
of remarkably daft and unperformant idea.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/xkbscan.c