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. --- db.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'db.h') diff --git a/db.h b/db.h index 52ebb17..23a96b3 100644 --- a/db.h +++ b/db.h @@ -1,10 +1,12 @@ #ifndef _DB_HDRS_ #define _DB_HDRS_ +#include "rfile.h" + struct db_file { int id; int revision; - char hash[33]; + char hash[HASH_BYTES]; }; int initdb(); -- cgit v1.2.3