Changeset 4634


Ignore:
Timestamp:
10/25/11 12:54:59 (10 years ago)
Author:
saurel
Message:

Major string formatting bug corrected that would prevent every Hypo71PC run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/seismic_processing/hyp71_mgr/hypo71_hypo2000_conv.c

    r4610 r4634  
    33 *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE 
    44 *   CHECKED IT OUT USING THE COMMAND CHECKOUT. 
     5 * 
     6 *     Revision 1.4.2  2011/10/25 00:00:00  jmsaurel 
     7 *     Corrected major str formatting bug in hypoarc_2_hypo71inp 
     8 *      This prevented the module from locating any event 
    59 * 
    610 *     Revision 1.4.1  2011/08/19 00:00:00  jmsaurel 
     
    119123                date17(REFat,str); 
    120124                strncat(hypo_msg,str+2,8);              /* Reference hour */ 
    121                 sprintf(str,"%#2f",floor((Pick.Pat - REFat)/60)); 
     125                sprintf(str,"%02d",floor((Pick.Pat - REFat)/60)); 
    122126                if(Pick.Plabel==' ') 
    123                         sprintf(str,"%#2f",floor((Pick.Sat - REFat)/60)); 
     127                        sprintf(str,"%02d",floor((Pick.Sat - REFat)/60)); 
    124128                strncat(hypo_msg,str,2);                /* minute */ 
    125129                date17(Pick.Pat,str); 
Note: See TracChangeset for help on using the changeset viewer.