Changeset 4923


Ignore:
Timestamp:
07/18/12 10:21:59 (6 years ago)
Author:
paulf
Message:

removed 3 warnings from chron3.c, embedded \0 in strings, and floor() instead of floorf()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libsrc/util/chron3.c

    r4850 r4923  
    115115                pow10 *= 10; 
    116116        } 
    117         return floorf(f * (double) pow10 + 0.5) / (double) pow10; 
     117        return floor(f * (double) pow10 + 0.5) / (double) pow10; 
    118118} 
    119119 
     
    329329        } 
    330330        grg(minute,&g); 
    331         sprintf(c17, "%04d%02d%02d%02d%02d%05.2f\0", 
     331        sprintf(c17, "%04d%02d%02d%02d%02d%05.2f", 
    332332                g.year, g.month, g.day, g.hour, g.minute, sex); 
    333333} 
     
    353353        } 
    354354        grg(minute,&g); 
    355         sprintf(c18, "%04d%02d%02d%02d%02d%06.3f\0", 
     355        sprintf(c18, "%04d%02d%02d%02d%02d%06.3f", 
    356356                g.year, g.month, g.day, g.hour, g.minute, sex); 
    357357} 
Note: See TracChangeset for help on using the changeset viewer.