From: Paul Eggert Date: Mon, 25 Jun 2012 07:54:45 +0000 (-0700) Subject: * gtkutil.c (get_utf8_string): Remove redundant assignment. X-Git-Tag: emacs-24.2.90~1199^2~356 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4495ff3898b49713c89f797d7e9c4153a40a3cde;p=emacs.git * gtkutil.c (get_utf8_string): Remove redundant assignment. sprintf already null-terminates its output. --- diff --git a/src/ChangeLog b/src/ChangeLog index 02dc8d4203a..95c938d7a68 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2012-06-25 Paul Eggert + * gtkutil.c (get_utf8_string): Remove redundant assignment. + sprintf already null-terminates its output. + * xfns.c (x_window): Remove redundant cast. 2012-06-25 Dmitry Antipov diff --git a/src/gtkutil.c b/src/gtkutil.c index 51c56e49540..6105d139d0e 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -525,7 +525,6 @@ get_utf8_string (const char *str) { strncpy (up, (char *)p, bytes_written); sprintf (up + bytes_written, "\\%03o", p[bytes_written]); - up[bytes_written+4] = '\0'; up += bytes_written+4; p += bytes_written+1; g_error_free (err);