From ffe739eeb12d1bf9dadb2144e95fef79820c6844 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Tue, 7 Jan 2014 20:27:07 -0500 Subject: Fixed possible unterminated strings in hash handling in commit code. --- rfile.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rfile.h') diff --git a/rfile.h b/rfile.h index 73ae06b..643c5ee 100644 --- a/rfile.h +++ b/rfile.h @@ -1,6 +1,9 @@ #ifndef _RFILE_HDR_ #define _RFILE_HDR_ +/* 32 bytes + 1 NULL */ +#define HASH_BYTES 33 + int get_file_hash(const char *filename, char *hash); int compress_file(const char *filename, int id, int revision); -- cgit v1.2.3