summaryrefslogtreecommitdiffstats
path: root/src/sh_tiger0.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sh_tiger0.c')
-rw-r--r--src/sh_tiger0.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sh_tiger0.c b/src/sh_tiger0.c
index aea8158..8a7ec17 100644
--- a/src/sh_tiger0.c
+++ b/src/sh_tiger0.c
@@ -378,7 +378,7 @@ sh_word32 * sh_tiger_hash_val (const char * filename, TigerType what,
#ifdef TIGER_DBG
ncount = 0;
#endif
- sl_memset(bbuf, 0, 56 );
+ memset(bbuf, 0, 56 );
}
#ifdef TIGER_DBG
@@ -401,8 +401,8 @@ sh_word32 * sh_tiger_hash_val (const char * filename, TigerType what,
tiger_dbg (res, 7, nblocks, ncount);
#endif
- sl_memset (bbuf, '\0', sizeof(bbuf));
- sl_memset (buffer, '\0', sizeof(buffer));
+ memset (bbuf, 0, sizeof(bbuf));
+ memset (buffer, 0, sizeof(buffer));
if (what == TIGER_FILE)
(void) sl_close (fd);
@@ -1020,8 +1020,8 @@ char * sh_tiger_md5_hash (char * filename, TigerType what,
/*@-bufferoverflowhigh -usedef@*/
for (cnt = 0; cnt < 16; ++cnt)
- sprintf (&outbuf[cnt*2], _("%02X"), /* known to fit */
- (unsigned int) md5buffer[cnt]);
+ sl_snprintf (&outbuf[cnt*2], 3, _("%02X"), /* known to fit */
+ (unsigned int) md5buffer[cnt]);
/*@+bufferoverflowhigh +usedef@*/
for (cnt = 32; cnt < KEY_LEN; ++cnt)
outbuf[cnt] = '0';
@@ -1584,7 +1584,7 @@ static char * sh_tiger_sha1_hash (char * filename, TigerType what,
/*@-bufferoverflowhigh -usedef@*/
for (cnt = 0; cnt < 20; ++cnt)
- sprintf (&outbuf[cnt*2], _("%02X"), /* known to fit */
+ sl_snprintf (&outbuf[cnt*2], 3, _("%02X"), /* known to fit */
(unsigned int) sha1buffer[cnt]);
/*@+bufferoverflowhigh +usedef@*/
for (cnt = 40; cnt < KEY_LEN; ++cnt)