Just a patch to avoid using strdupa(), which doesn't exist
on BSD's.
By the way, 'buf' - and 'trash_dir' now - should be PATH_MAX
instead, no ?
--- e_fm/e_fm_ipc.c Sat Dec 15 22:24:51 2012
+++ e_fm/e_fm_ipc.c Sat Dec 15 22:21:50 2012
@@ -2,7 +2,6 @@
#include "config.h"
#endif
-
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
@@ -1253,8 +1252,8 @@
FILE *info = NULL;
const char *filename;
const char *escname = NULL;
- char *dest, *trash_dir;
- char buf[4096];
+ char *dest;
+ char buf[4096], trash_dir[4096];
unsigned int i = 0;
struct tm *lt;
time_t t;
@@ -1267,7 +1266,7 @@
/* Check that 'home trash' and subsequesnt dirs exists, create if not */
snprintf(buf, sizeof(buf), "%s/Trash", efreet_data_home_get());
- trash_dir = strdupa(buf);
+ strcpy(trash_dir, buf);
snprintf(buf, sizeof(buf), "%s/files", trash_dir);
if (!ecore_file_mkpath(buf)) return 0;
snprintf(buf, sizeof(buf), "%s/info", trash_dir);
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel