Make ds_cstr() always null-terminate the string.
authorBen Pfaff <blp@nicira.com>
Mon, 29 Dec 2008 21:26:19 +0000 (13:26 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 29 Dec 2008 21:26:19 +0000 (13:26 -0800)
commit1db8d9dc86e69d02eb21df641d71f2e0abd61aa3
treeae2aa6253200fc31322f6894a509253a366e9e7b
parentb7ff84df6de61c957a1602a5c3e821fd30320ab7
Make ds_cstr() always null-terminate the string.

Most of the time the string in "struct ds" is
null-terminated, but there seem to be a few corner cases
where it is not.  Make ds_cstr() always put in the null
terminator, for safety.

Thanks to Justin for pointing out the problem.
lib/dynamic-string.c