1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

* gtkutil.c (get_utf8_string): Remove redundant assignment.

sprintf already null-terminates its output.
This commit is contained in:
Paul Eggert 2012-06-25 00:54:45 -07:00
parent b3b4476b09
commit 4495ff3898
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2012-06-25 Paul Eggert <eggert@cs.ucla.edu>
* 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 <dmantipov@yandex.ru>

View File

@ -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);