aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-16 15:10:58 -0500
committerTed Gould <ted@gould.cx>2010-07-16 15:10:58 -0500
commitbf3973945daef188061f2b6a4486206baaacc49d (patch)
tree481519de2ed6114b5f0da75a2f6587d71a661c39 /src
parent81b745b7309fa958e96e3df8d683b77cf2f2dac4 (diff)
downloadayatana-indicator-datetime-bf3973945daef188061f2b6a4486206baaacc49d.tar.gz
ayatana-indicator-datetime-bf3973945daef188061f2b6a4486206baaacc49d.tar.bz2
ayatana-indicator-datetime-bf3973945daef188061f2b6a4486206baaacc49d.zip
Ah, dumb bug
Diffstat (limited to 'src')
-rw-r--r--src/indicator-datetime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index b68a6ea..5d7502f 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -631,8 +631,9 @@ static gint
generate_strftime_bitmask (IndicatorDatetime * self)
{
gint retval = 0;
- glong strlength = g_utf8_strlen(self->priv->time_string, 0);
+ glong strlength = g_utf8_strlen(self->priv->time_string, -1);
gint i;
+ g_debug("Evaluating bitmask for '%s'", self->priv->time_string);
for (i = 0; i < strlength; i++) {
if (self->priv->time_string[i] == '%' && i + 1 < strlength) {