diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-01 08:39:52 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-01 08:39:52 +0000 |
commit | 4dce31695eeb191810899e825639931363bc0052 (patch) | |
tree | 35bb19b8486d4a2e4b1ccf24b70ab557f6566157 | |
parent | be16752fb0d21892e52e18bb993d9cddf0eba2ca (diff) |
replace one ifdeffed out sprintf with g_snprintf() so that it doesnt show up in a 'grep sprintf *.c' any more
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15650 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/sha1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/sha1.c b/epan/sha1.c index 606731d257..9b8fef4576 100644 --- a/epan/sha1.c +++ b/epan/sha1.c @@ -348,7 +348,7 @@ int main( int argc, char *argv[] ) for( j = 0; j < 20; j++ ) { - sprintf( output + j * 2, "%02x", sha1sum[j] ); + g_snprintf( output + j * 2, 41-j*2, "%02x", sha1sum[j] ); } if( memcmp( output, val[i], 40 ) ) |