chiark / gitweb /
buf: Fix two embarassing bugs found while writing Lisp bindings.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 15 May 2006 19:18:32 +0000 (20:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 15 May 2006 19:18:32 +0000 (20:18 +0100)
commita4589237d33eb5ed0858371a668f652651f4bcda
treef17efa5ed8101a1e774045892898e0fecc4a9cef
parent26f325c05cf0aa292589458b5c1aa8b5f5ab92ba
buf: Fix two embarassing bugs found while writing Lisp bindings.

  * buf_{get,put}memNl never worked.  It always wrote the length
    big-endian.

  * buf_getmemz never worked, because it used the wrong length to find
    the terminator.
buf.c