mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
Allocate only up to 128KB for a pathname. While this is an arbitrary value
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gutils.c (g_get_current_dir): Allocate only up to 128KB for a pathname. While this is an arbitrary value just like 2048, it seems to be enough (after all, even 4GB is an arbitrary value).
This commit is contained in:
parent
68c4ed996f
commit
cdb6195572
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-03-21 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
|
||||
pathname. While this is an arbitrary value just like 2048, it
|
||||
seems to be enough (after all, even 4GB is an arbitrary value).
|
||||
|
||||
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gmain.c (g_main_poll): Warn in case of an error during the call
|
||||
|
@ -346,7 +346,7 @@ g_get_current_dir (void)
|
||||
*buffer = 0;
|
||||
dir = getwd (buffer);
|
||||
#else /* !sun */
|
||||
while (1)
|
||||
while (max_len < 128 * 1024)
|
||||
{
|
||||
buffer = g_new (gchar, max_len + 1);
|
||||
*buffer = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user