diff options
author | marcus <marcus@FreeBSD.org> | 2003-06-28 13:55:41 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-06-28 13:55:41 +0800 |
commit | f1c7648087125e6302aed13aafe45f6c83562e7f (patch) | |
tree | bc1ac7459007920051e88b51a1b2952da0d0f899 /editors | |
parent | d717d529a7ea5a04ff02fb07997b070f7e7e5553 (diff) | |
download | freebsd-ports-gnome-f1c7648087125e6302aed13aafe45f6c83562e7f.tar.gz freebsd-ports-gnome-f1c7648087125e6302aed13aafe45f6c83562e7f.tar.zst freebsd-ports-gnome-f1c7648087125e6302aed13aafe45f6c83562e7f.zip |
Fix some buffer handling problems with pathnames.
Submitted by: kris
Obtained from: OpenBSD
Diffstat (limited to 'editors')
-rw-r--r-- | editors/glimmer/Makefile | 2 | ||||
-rw-r--r-- | editors/glimmer/files/patch-src_file-io_c | 15 | ||||
-rw-r--r-- | editors/glimmer/files/patch-src_main_c | 20 |
3 files changed, 36 insertions, 1 deletions
diff --git a/editors/glimmer/Makefile b/editors/glimmer/Makefile index f58020bdefee..5c9f5ea0c87c 100644 --- a/editors/glimmer/Makefile +++ b/editors/glimmer/Makefile @@ -7,7 +7,7 @@ PORTNAME= glimmer PORTVERSION= 1.2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= editors gnome python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/editors/glimmer/files/patch-src_file-io_c b/editors/glimmer/files/patch-src_file-io_c new file mode 100644 index 000000000000..0dd312c54ba5 --- /dev/null +++ b/editors/glimmer/files/patch-src_file-io_c @@ -0,0 +1,15 @@ +--- src/file-io.c.orig Tue Jun 17 01:52:36 2003 ++++ src/file-io.c Tue Jun 17 01:53:49 2003 +@@ -102,10 +102,10 @@ void + 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); diff --git a/editors/glimmer/files/patch-src_main_c b/editors/glimmer/files/patch-src_main_c new file mode 100644 index 000000000000..3d20104718c2 --- /dev/null +++ b/editors/glimmer/files/patch-src_main_c @@ -0,0 +1,20 @@ +--- src/main.c.orig Tue Jun 17 01:53:17 2003 ++++ src/main.c Tue Jun 17 01:54:18 2003 +@@ -342,7 +342,7 @@ main_finish (void *closure, int argc, ch + gchar *path; + gchar *file; + gchar *full; +- gchar cwd[256]; ++ gchar cwd[MAXPATHLEN]; + + args = (gchar **) poptGetArgs (pctx); + +@@ -381,7 +381,7 @@ main_finish (void *closure, int argc, ch + } + } + if (input_file) { +- gchar *path, *file, *full, cwd[256]; ++ gchar *path, *file, *full, cwd[MAXPATHLEN]; + + getcwd (cwd, sizeof (cwd)); + path = get_path_from_filename (input_file); |