]> granicus.if.org Git - jq/commit
Fix an embarassing I/O bug.
authorStephen Dolan <mu@netsoc.tcd.ie>
Thu, 27 Dec 2012 01:57:09 +0000 (01:57 +0000)
committerStephen Dolan <mu@netsoc.tcd.ie>
Thu, 27 Dec 2012 01:57:09 +0000 (01:57 +0000)
commit52db8000c6e0564e92fdba72687e338dc603e02d
tree77d5001aa6b47546f6c9ddc3596f1f0f38372eef
parentd327772dfc78ad49f46fbf583418e33abc0b59d2
Fix an embarassing I/O bug.

Pulling some I/O out to a function meant that buf changed from
"char buf[4096]" to "char* buf", and "sizeof(buf)" got a lot
less interesting. The upshot of this is that jq read input eight
bytes at a time, which is not the fastest.
main.c