~ubuntu-branches/debian/jessie/acfax/jessie

« back to all changes in this revision

Viewing changes to Directory.c

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2001-12-27 12:07:46 UTC
  • Revision ID: james.westby@ubuntu.com-20011227120746-l72xpm5hcde2sa2s
Tags: 981011-7
Changed Imakefile to use ComplexProgramTargetNoMan rather
than ComplexProgramTarget (closes: #123696)

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        register char *p;
182
182
        char path[MAXPATHLEN + 2];
183
183
 
184
 
        if (getwd(path) == NULL) return(NULL);
 
184
        if (getcwd(path, MAXPATHLEN) == NULL) return(NULL);
185
185
        if (chdir(old_path) != 0) return(NULL);
186
 
        if (getwd(new_path) == NULL) strcpy(new_path,old_path);
 
186
        if (getcwd(new_path, MAXPATHLEN) == NULL) strcpy(new_path,old_path);
187
187
        if (chdir(path) != 0) return(NULL);
188
188
        for (p = new_path; *p != '\0'; p++);
189
189
        /* append trailing slash if not already in place... */