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>
Tue, 13 Jan 2009 01:10:53 +0000 (17:10 -0800)
commitb9fddc9244da97d38b2fea80c69b0348a9b53d96
tree20379dcc206b4db13572ec82bd2bbc597e2d199b
parentb54269832d4add0af5e7b2a1c787968da1ca8bfe
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