warning string missing

Tim Murphy tpm at hi.com
Thu May 1 14:00:41 UTC 1997


The warning() function in zic.c contains the following code.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
static void
warning(string)
const char * const      string;
{
        char *  cp;

        cp = ecpyalloc("warning: ");
        cp = ecatalloc(cp, string);
        error(string);
        ifree(cp);
        --errors;
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

It appears the argument to error() should be cp instead of string.
                                             --            ------

----------------------------------------------------------------------
Timothy Patrick Murphy		tpm at hi.com 	Voice: (617) 890-0444	
Hitachi Computer Products                 	  Fax: (617) 890-4998
1601 Trapelo Rd., Waltham, MA 02154, USA
----------------------------------------------------------------------



More information about the tz mailing list