diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 70369410bf..887af19200 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1544,7 +1544,7 @@ weed_out_neg_zero (gchar *str, gchar neg_zero[8]; g_snprintf (neg_zero, 8, "%0.*f", digits, -0.0); if (strcmp (neg_zero, str) == 0) - memmove (str, str + 1, strlen (str) - 1); + memmove (str, str + 1, strlen (str)); } return str; } diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index e4ddfaecb6..e673bd3a03 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -1101,7 +1101,7 @@ weed_out_neg_zero (gchar *str, gchar neg_zero[8]; g_snprintf (neg_zero, 8, "%0.*f", digits, -0.0); if (strcmp (neg_zero, str) == 0) - memmove (str, str + 1, strlen (str) - 1); + memmove (str, str + 1, strlen (str)); } return str; }