It helps if the string which you are length checking isn't the one you've just set...
commit8b0a23fefe5bd0c07d315d39696922af99850ead
authorToby Gray <toby.gray@realvnc.com>
Thu, 26 Aug 2010 14:33:37 +0000 (26 15:33 +0100)
committerChris Frey <cdfrey@foursquare.net>
Fri, 3 Sep 2010 21:36:08 +0000 (3 17:36 -0400)
tree05803e6f790a783511740a09df0d3b2846c8cbdf
parent09ade3009871cb2fac6d5a4252d8d256f2b3a29d
It helps if the string which you are length checking isn't the one you've just set to all nul.
src/controller.cc