[PATCH] Porting filmgimp-0.1-1.0.4 to GNU/Hurd
Hi,
since I already wrote a (very) little patch to enable gimp to
compile/run on the Hurd, I thought it could be easy to port filmgimp
too. It was, and you'll find the patch included below.
Cordially,
JP (Snark on #hurd, #hurdfr on irc.openprojects.net)
PS: here is the patch:
diff -ur filmgimp-0.1-1.0.4-orig/libgimp/gimp.c
filmgimp-0.1-1.0.4-hurd/libgimp/
gimp.c
--- filmgimp-0.1-1.0.4-orig/libgimp/gimp.c Wed Sep 6 08:22:34 2000
+++ filmgimp-0.1-1.0.4-hurd/libgimp/gimp.c Wed Aug 14 09:27:37 2002
@@ -802,13 +802,18 @@
gchar*
gimp_gtkrc ()
{
- static char filename[MAXPATHLEN];
+ char *filename;
+ int filename_len;
char *home_dir;
home_dir = getenv ("HOME");
if (!home_dir)
return NULL;
+ filename_len = strlen(home_dir) + strlen(GIMPDIR) + 8;
+ filename = malloc(filename_len);
+ if (!filename)
+ return NULL;
sprintf (filename, "%s/%s/gtkrc", home_dir, GIMPDIR);
return filename;
Reply to: