--- libwww/Library/src/HTFSave.c 1999/04/25 00:02:47 2.3 +++ libwww/Library/src/HTFSave.c 1999/05/22 18:23:32 2.4 @@ -3,7 +3,7 @@ ** ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. -** @(#) $Id: HTFSave.c,v 2.3 1999/04/25 00:02:47 frystyk Exp $ +** @(#) $Id: HTFSave.c,v 2.4 1999/05/22 18:23:32 frystyk Exp $ ** ** This version of the stream object just writes to a C file. ** The file is assumed open and left open. @@ -128,7 +128,7 @@ PRIVATE char * get_filename (char * base char * uri_path = NULL; if (uri && (uri_path = HTParse(uri, "", PARSE_PATH|PARSE_PUNCTUATION))) { char * last_segment = strrchr(uri_path, '/'); - BOOL slash = (base && *(base+strlen(base)-1)=='/'); + BOOL slash = (base && *(base+strlen(base)-1)==DIR_SEPARATOR_CHAR); if (last_segment && *(last_segment+1)) { StrAllocMCopy(&path, base ? base : "", slash ? "" : DIR_SEPARATOR_STR, ++last_segment, NULL);