IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 546


Ignore:
Timestamp:
Apr 28, 2004, 12:20:22 PM (22 years ago)
Author:
evanalst
Message:

Add arguement casts for psStringNCopy to prevent splint warnings.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.c

    r531 r546  
    88 *  @author Eric Van Alst, MHPCC
    99 *   
    10  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-04-27 22:39:48 $
     10 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-04-28 22:20:22 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8282    // Copy input string to memory allocated up to nChar characters
    8383    // Return the copy
    84     return strncpy(psAlloc(nChar + 1), str, nChar);
     84    return strncpy(psAlloc((size_t)nChar + 1), str, (size_t)nChar);
    8585}
    8686
  • trunk/psLib/src/sysUtils/psString.c

    r531 r546  
    88 *  @author Eric Van Alst, MHPCC
    99 *   
    10  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-04-27 22:39:48 $
     10 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-04-28 22:20:22 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8282    // Copy input string to memory allocated up to nChar characters
    8383    // Return the copy
    84     return strncpy(psAlloc(nChar + 1), str, nChar);
     84    return strncpy(psAlloc((size_t)nChar + 1), str, (size_t)nChar);
    8585}
    8686
Note: See TracChangeset for help on using the changeset viewer.