Changeset 8f5afcf for zcrypt.c


Ignore:
Timestamp:
Jul 13, 2011, 11:51:37 PM (11 years ago)
Author:
GitHub Merge Button <merge-button@github.com>
Parents:
30d0cf7 (diff), a7b125d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge a7b125d60dcd2a22d2dfb2634982352acdcbc51c into 30d0cf75d34271caa5cca99bfac799fb7aaed6d7
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zcrypt.c

    r6829afc ra7b125d  
    411411  int length[MAX_SEARCH], i;
    412412  char buffer[MAX_BUFF];
     413  const char *home;
    413414  char *filename;
    414415  char result[MAX_SEARCH][MAX_BUFF];
     
    433434
    434435  /* Open~/.crypt-table */
    435   filename = g_strdup_printf("%s/.crypt-table", getenv("HOME"));
     436  home = getenv("HOME");
     437  if (home == NULL)
     438    home = g_get_home_dir();
     439  filename = g_build_filename(home, ".crypt-table", NULL);
    436440  fsearch = fopen(filename, "r");
    437441  if (fsearch)
Note: See TracChangeset for help on using the changeset viewer.