/[ascend]/trunk/base/generic/general/ospath.c
ViewVC logotype

Diff of /trunk/base/generic/general/ospath.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 587 by johnpye, Wed May 10 17:02:21 2006 UTC revision 588 by johnpye, Thu May 11 02:06:46 2006 UTC
# Line 477  void ospath_strcpy(struct FilePath *fp, Line 477  void ospath_strcpy(struct FilePath *fp,
477  }  }
478    
479  void ospath_strcat(struct FilePath *fp, char *dest, int destsize){  void ospath_strcat(struct FilePath *fp, char *dest, int destsize){
480      int remaining = destsize - strlen(dest);      int remaining = destsize - strlen(dest);
481        V(remaining);  
482  #ifdef WINPATHS  #ifdef WINPATHS
483      STRNCAT(dest,fp->drive,remaining);      STRNCAT(dest,fp->drive,remaining);
484      STRNCAT(dest,fp->path,remaining-strlen(dest));      STRNCAT(dest,fp->path,remaining-strlen(dest));
485  #else  #else
486      STRNCPY(dest,fp->path,remaining);      STRNCAT(dest,fp->path,remaining);
487  #endif  #endif
488        D(fp);
489  }  }
490    
491  void ospath_fwrite(struct FilePath *fp, FILE *dest){  void ospath_fwrite(struct FilePath *fp, FILE *dest){

Legend:
Removed from v.587  
changed lines
  Added in v.588

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22