summaryrefslogtreecommitdiff
path: root/x11/xedit/files/patch-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xedit/files/patch-util.c')
-rw-r--r--x11/xedit/files/patch-util.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/x11/xedit/files/patch-util.c b/x11/xedit/files/patch-util.c
deleted file mode 100644
index 22ec83b7c17c..000000000000
--- a/x11/xedit/files/patch-util.c
+++ /dev/null
@@ -1,27 +0,0 @@
---- util.c.orig 2015-02-21 21:42:33 UTC
-+++ util.c
-@@ -506,13 +506,14 @@ ResolveName(char *filename)
-
- if (result == NULL && errno == ENOENT) {
- int length;
-- char *dir, *file;
-+ char *dir, *file, *fname;
-
- length = strlen(filename);
- tmp = dir = XtMalloc(length + 1);
- strcpy(dir, filename);
-+ fname = strdup(filename);
-
-- file = basename(filename);
-+ file = basename(fname);
- dir = dirname(tmp);
-
- /* Creating a new file? */
-@@ -526,6 +527,7 @@ ResolveName(char *filename)
- }
-
- XtFree(tmp);
-+ free(fname);
- }
-
- return (result);