From a2db68496bd6270b4a0e731963a7db7745f36c11 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 26 May 2006 22:26:32 +0200 Subject: [PATCH] Fix off by one error; makes tags visible again Fixes: d0cea5f929be563d049bc5205fb8de08fd080c32 --- tig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.30.2