passing NULL as second argument to realpath(), this way the result is returned in a newly allocated buffer (that the caller frees) instead of one allocated on the stack in canonicalize_file_name(). While here remove deprecated multipart/zip from MimeType in the desktop file while here, triggers warnings from update-desktop-database.
23 lines
629 B
Plaintext
23 lines
629 B
Plaintext
$OpenBSD: patch-src_main_c,v 1.2 2018/04/25 10:16:44 landry Exp $
|
|
Index: src/main.c
|
|
--- src/main.c.orig
|
|
+++ src/main.c
|
|
@@ -24,7 +24,7 @@ char *
|
|
canonicalize_file_name(char *path)
|
|
{
|
|
char *name, rzpath[256];
|
|
- name = realpath(path, rzpath);
|
|
+ name = realpath(path, NULL);
|
|
return name;
|
|
}
|
|
#endif
|
|
@@ -63,7 +63,7 @@ setup_exts(WrapperEntry *wrapent)
|
|
GPtrArray *ext_array = NULL;
|
|
|
|
/* read extentions into dataline from wrapper */
|
|
- cmd = g_strdup_printf("%s -i", wrapent->path);
|
|
+ cmd = g_strdup_printf("%s -i test", wrapent->path);
|
|
fdata = popen(cmd, "r");
|
|
if (getline(&dataline, &maxline, fdata) > 0)
|
|
{
|