aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-08-31 18:28:59 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-08-31 18:28:59 +0000
commitafd6761f4686841c74269f3d9db19bcc76e1d3b7 (patch)
tree947449980e87ef4f2d5e93b8b5c9e76cbbe8c9a2 /version_info.c
parentf75b4ae02bbdcd05a600f6656edf7a850fc655e5 (diff)
A GString has it's own length.
svn path=/trunk/; revision=34034
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/version_info.c b/version_info.c
index ca0a937418..ce99b5ce75 100644
--- a/version_info.c
+++ b/version_info.c
@@ -87,7 +87,7 @@ end_string(GString *str)
size_t point;
char *p, *q;
- point = strlen(str->str);
+ point = str->len;
if (point == 0 || str->str[point - 1] != '\n')
g_string_append(str, "\n");
p = str->str;