Fixed off-by-one error when computing length.

Tue Dec 29 16:06:55 1998 Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
	error when computing length.
This commit is contained in:
Owen Taylor 1998-12-29 21:10:30 +00:00 committed by Owen Taylor
parent fc07d22a53
commit a078311369
9 changed files with 39 additions and 4 deletions

View File

@ -1,3 +1,8 @@
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
error when computing length.
Thu Dec 24 14:35:48 1998 Jeff Garzik <jgarzik@pobox.com>
* gdk/gdkevents.c, gdk/gdkim.c, gdk/gdkrgb.c, gdk/gdkwindow.c,

View File

@ -1,3 +1,8 @@
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
error when computing length.
Thu Dec 24 14:35:48 1998 Jeff Garzik <jgarzik@pobox.com>
* gdk/gdkevents.c, gdk/gdkim.c, gdk/gdkrgb.c, gdk/gdkwindow.c,

View File

@ -1,3 +1,8 @@
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
error when computing length.
Thu Dec 24 14:35:48 1998 Jeff Garzik <jgarzik@pobox.com>
* gdk/gdkevents.c, gdk/gdkim.c, gdk/gdkrgb.c, gdk/gdkwindow.c,

View File

@ -1,3 +1,8 @@
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
error when computing length.
Thu Dec 24 14:35:48 1998 Jeff Garzik <jgarzik@pobox.com>
* gdk/gdkevents.c, gdk/gdkim.c, gdk/gdkrgb.c, gdk/gdkwindow.c,

View File

@ -1,3 +1,8 @@
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
error when computing length.
Thu Dec 24 14:35:48 1998 Jeff Garzik <jgarzik@pobox.com>
* gdk/gdkevents.c, gdk/gdkim.c, gdk/gdkrgb.c, gdk/gdkwindow.c,

View File

@ -1,3 +1,8 @@
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
error when computing length.
Thu Dec 24 14:35:48 1998 Jeff Garzik <jgarzik@pobox.com>
* gdk/gdkevents.c, gdk/gdkim.c, gdk/gdkrgb.c, gdk/gdkwindow.c,

View File

@ -1,3 +1,8 @@
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
error when computing length.
Thu Dec 24 14:35:48 1998 Jeff Garzik <jgarzik@pobox.com>
* gdk/gdkevents.c, gdk/gdkim.c, gdk/gdkrgb.c, gdk/gdkwindow.c,

View File

@ -1493,8 +1493,8 @@ gdk_wcstombs (const GdkWChar *src)
gint length = 0;
gint i;
while (src[length++] != 0)
;
while (src[length] != 0)
length++;
mbstr = g_new (gchar, length + 1);

View File

@ -1493,8 +1493,8 @@ gdk_wcstombs (const GdkWChar *src)
gint length = 0;
gint i;
while (src[length++] != 0)
;
while (src[length] != 0)
length++;
mbstr = g_new (gchar, length + 1);