IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2006, 1:20:21 PM (20 years ago)
Author:
jhoblitt
Message:

fix a wide range of format string errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacRead.c

    r6887 r8684  
    2727        psFits *imageFile = psFitsOpen(filenames->data[i], "r");
    2828        if (!imageFile) {
    29             psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", filenames->data[i]);
     29            psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", (char *)filenames->data[i]);
    3030            exit(EXIT_FAILURE);
    3131        }
     
    3636        psImage *image = psFitsReadImage(imageFile, imageRegion, 0);
    3737        if (image == NULL) {
    38             psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n",filenames->data[i]);
     38            psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n", (char *)filenames->data[i]);
    3939            exit(EXIT_FAILURE);
    4040        }
     
    190190    for (int i = 0; i < nFiles; i++) {
    191191        if (strlen(filenames->data[i]) > MAXCHAR - 4) {
    192             psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n",filenames->data[i]);
     192            psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n",(char *)filenames->data[i]);
    193193            exit(EXIT_FAILURE);
    194194        }
Note: See TracChangeset for help on using the changeset viewer.