Ticket #28070: patch-src-iop-lens.c.diff

File patch-src-iop-lens.c.diff, 583 bytes (added by julians37@…, 13 years ago)
  • src/iop/lens.c

    diff -ru ../orig/darktable-0.7.1/src/iop/lens.c ./src/iop/lens.c
    old new  
    373374    char *c = path + strlen(path);
    374375    for(;c>path && *c != '/';c--);
    375376    sprintf(c, "/lensfun");
    376     dt_iop_lensfun_db->HomeDataDir = path;
     377    dt_iop_lensfun_db->HomeDataDir = g_build_filename(path, NULL);
    377378    if(lf_db_load(dt_iop_lensfun_db) != LF_NO_ERROR)
    378379    {
    379380      fprintf(stderr, "[iop_lens]: could not load lensfun database in `%s'!\n", path);