strbuffer: Optimize string termination
authorPetri Lehtinen <petri@digip.org>
Tue, 30 Jun 2009 11:39:55 +0000 (14:39 +0300)
committerPetri Lehtinen <petri@digip.org>
Sat, 4 Jul 2009 10:19:41 +0000 (13:19 +0300)
commit55af26f05a8e4f3cd30d99c042ca136d9fcbc261
treec5a662f9230b74fa28fa18db3cc0bfbfde687a11
parentb724c2b12222f8b9d2b9ad57c8a18b5e02738a76
strbuffer: Optimize string termination

Do not zero all of the memory, just the first unused byte to make the
string null terminated.
src/strbuffer.c
src/strbuffer.h