[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000322: nmap image display problem



This bug caused problems displaying/updating images
in nmap when ii > MAX_PIX and reading the time strings.

nprogs/nmap/source/nmap_image.c about line 149,

     * convert the file names to time strings
     */
    for ( ii = istart, jj = 0; ii < nn; ii++, jj++ ) {
        image_getDttmFromFile(dnamelist[ii]->d_name, times[jj]);
        ti_dtm4 ( times[jj], tarr[jj], &ignore,
                  strlen(times[jj]), sizeof(tarr[jj]) );
        tarr[ii][13] = '\0';
        }

tarr index ii should be jj when adding the NULL terminator:

tarr[jj][13] = '\0';


Steve Chiswell
Unidata User Support