forked from AuroraMiddleware/gtk
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:
parent
fc07d22a53
commit
a078311369
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user