fix got.conf overriding GOT_AUTHOR even if no author is set in got.conf
diff --git a/libexec/got-read-gotconfig/got-read-gotconfig.c b/libexec/got-read-gotconfig/got-read-gotconfig.c
index 325d7ca..159d313 100644
--- a/libexec/got-read-gotconfig/got-read-gotconfig.c
+++ b/libexec/got-read-gotconfig/got-read-gotconfig.c
@@ -104,7 +104,7 @@ done:
static const struct got_error *
send_gotconfig_str(struct imsgbuf *ibuf, const char *value)
{
- size_t len = value ? strlen(value) + 1 : 0;
+ size_t len = value ? strlen(value) : 0;
if (imsg_compose(ibuf, GOT_IMSG_GOTCONFIG_STR_VAL, 0, 0, -1,
value, len) == -1)