diff -ru ../orig/darktable-0.7.1/src/iop/lens.c ./src/iop/lens.c
--- ../orig/darktable-0.7.1/src/iop/lens.c	2010-12-08 00:49:56.000000000 +1300
+++ ./src/iop/lens.c	2011-01-18 15:06:57.000000000 +1300
@@ -373,7 +374,7 @@
     char *c = path + strlen(path);
     for(;c>path && *c != '/';c--);
     sprintf(c, "/lensfun");
-    dt_iop_lensfun_db->HomeDataDir = path;
+    dt_iop_lensfun_db->HomeDataDir = g_build_filename(path, NULL);
     if(lf_db_load(dt_iop_lensfun_db) != LF_NO_ERROR)
     {
       fprintf(stderr, "[iop_lens]: could not load lensfun database in `%s'!\n", path);
