mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-08 03:45:49 +01:00
Use longer buffer for user name.
2001-12-31 Tor Lillqvist <tml@iki.fi> * glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for user name.
This commit is contained in:
parent
a740df4158
commit
bd82887a67
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-12-31 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
|
||||
user name.
|
||||
|
||||
Sat Dec 29 15:07:21 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gspawn.c (script_execute): Copy trailing NULL
|
||||
|
@ -68,6 +68,7 @@
|
||||
# define STRICT /* Strict typing, please */
|
||||
# include <windows.h>
|
||||
# undef STRICT
|
||||
# include <lmcons.h> /* For UNLEN */
|
||||
# include <ctype.h>
|
||||
#endif /* G_PLATFORM_WIN32 */
|
||||
|
||||
@ -868,8 +869,8 @@ g_get_any_init (void)
|
||||
|
||||
# ifdef G_OS_WIN32
|
||||
{
|
||||
guint len = 17;
|
||||
gchar buffer[17];
|
||||
guint len = UNLEN+1;
|
||||
gchar buffer[UNLEN+1];
|
||||
|
||||
if (GetUserName ((LPTSTR) buffer, (LPDWORD) &len))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user