diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-08-31 18:28:59 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-08-31 18:28:59 +0000 |
commit | afd6761f4686841c74269f3d9db19bcc76e1d3b7 (patch) | |
tree | 947449980e87ef4f2d5e93b8b5c9e76cbbe8c9a2 | |
parent | f75b4ae02bbdcd05a600f6656edf7a850fc655e5 (diff) |
A GString has it's own length.
svn path=/trunk/; revision=34034
-rw-r--r-- | epan/prefs.c | 2 | ||||
-rw-r--r-- | version_info.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index fa6591b39e..1368367700 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -3074,7 +3074,7 @@ write_prefs(char **pf_path_return) col_l = g_list_append(col_l, g_strdup(cfmt->fmt)); } if (!cfmt->visible) { - if (strlen (cols_hidden->str)) { + if (cols_hidden->len) { g_string_append (cols_hidden, ","); } g_string_append (cols_hidden, prefs_fmt); 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; |