Commit a0783113 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

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.
parent fc07d22a
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,
......
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,
......
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,
......
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,
......
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,
......
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,
......
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,
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment