Two off-by-one's in the client, plus ptr mixup.

Fixes the cli for setting a string.