mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-07 02:06:57 +00:00
fcded05a2d
PR: 53871
24 lines
545 B
Plaintext
24 lines
545 B
Plaintext
--- src/file-io.c.orig Thu Jan 10 12:51:15 2002
|
|
+++ src/file-io.c Sat Jun 28 12:38:16 2003
|
|
@@ -24,6 +24,7 @@
|
|
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
+#include <sys/param.h>
|
|
|
|
#include "declarations.h"
|
|
#include "file-io.h"
|
|
@@ -102,10 +103,10 @@
|
|
new_file_real (char *filename)
|
|
{
|
|
GnomeVFSURI *uri;
|
|
- gchar cwd[256];
|
|
+ gchar cwd[MAXPATHLEN];
|
|
gchar *full;
|
|
|
|
- getcwd (cwd, 256);
|
|
+ getcwd (cwd, sizeof(cwd));
|
|
full = g_strconcat (cwd, "/", filename, NULL);
|
|
uri = gnome_vfs_uri_new (full);
|
|
g_free (full);
|