mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
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
|
|
@@ -55,7 +55,7 @@ getline(char **lineptr, size_t *n, FILE *stream)
|
|
void
|
|
setup_exts(WrapperEntry *wrapent)
|
|
{
|
|
- int maxline=MAXLINE;
|
|
+ size_t maxline=MAXLINE;
|
|
gchar *dataline = (gchar *) g_malloc (MAXLINE + 1);
|
|
gchar *cmd, *extname;
|
|
FILE *fdata;
|
|
@@ -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)
|
|
{
|
|
@@ -216,7 +216,8 @@ get_archive_data(gchar **argv)
|
|
* sending each line to the widgets add_row function */
|
|
enum {name=0,size,attr,user,group,date,time,link,num_ent};
|
|
FILE *fdata;
|
|
- gint cnt, maxline=MAXLINE, i = 20, error = 0;
|
|
+ size_t maxline=MAXLINE;
|
|
+ gint cnt, i = 20, error = 0;
|
|
gchar *ent[num_ent], *esc_archive;
|
|
gchar *dataline = (gchar *) g_malloc (MAXLINE + 1);
|
|
gchar delimit[]=";\n";
|