From: Jonas Fonseca Date: Fri, 26 May 2006 20:26:32 +0000 (+0200) Subject: Fix off by one error; makes tags visible again X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a2db68496bd6270b4a0e731963a7db7745f36c11;p=tig.git Fix off by one error; makes tags visible again Fixes: d0cea5f929be563d049bc5205fb8de08fd080c32 --- diff --git a/tig.c b/tig.c index cba8c82..a5d9df3 100644 --- a/tig.c +++ b/tig.c @@ -2420,8 +2420,10 @@ read_properties(const char *cmd, int separator, namelen = value - name; *value++ = 0; valuelen = strlen(value); - if (valuelen > 0) - value[valuelen - 1] = 0; + if (valuelen > 0) { + valuelen--; + value[valuelen] = 0; + } } else { namelen = strlen(name);