Changeset 133 for trunk/src/sh_error.c


Ignore:
Timestamp:
Oct 25, 2007, 12:19:05 AM (12 years ago)
Author:
rainer
Message:

Reentrant checksum/hash functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_error.c

    r132 r133  
    124124{
    125125  char * foo;
     126  char hashbuf[KEYBUF_SIZE];
    126127
    127128  if (s[0] == '/')
     
    135136      fprintf (stdout, _("string=<%s>, hash=<%s>\n"),
    136137               s, sh_tiger_hash (s, TIGER_DATA,
    137                                  (unsigned long) sl_strlen(s)));
     138                                 (unsigned long) sl_strlen(s),
     139                                 hashbuf, sizeof(hashbuf))
     140               );
    138141    }
    139142  (void) fflush(stdout);
Note: See TracChangeset for help on using the changeset viewer.