IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10578


Ignore:
Timestamp:
Dec 8, 2006, 12:18:58 PM (20 years ago)
Author:
magnier
Message:

updated file rules for pmConfigConvertFilename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r10501 r10578  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2006-12-06 20:25:12 $
     6 *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2006-12-08 22:18:58 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    845845
    846846    // strip file:// from front of name
    847     if (!strncasecmp (newName, "file://", strlen("file://"))) {
    848         psStringSubstitute(&newName, "", "file://");
     847    if (!strncasecmp (newName, "file:", strlen("file:"))) {
     848        char *point = newName + strlen("file:");
     849        while (*point == '/')
     850            point ++;
     851        char *tmpName = psStringCopy (point);
     852        psFree (newName);
     853        newName = tmpName;
    849854    }
    850855
Note: See TracChangeset for help on using the changeset viewer.