summaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-01-07 20:27:07 -0500
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-01-07 20:27:07 -0500
commitffe739eeb12d1bf9dadb2144e95fef79820c6844 (patch)
tree71bc466fa3d8be3c2d3c197388c49a2a3dda3907 /db.h
parentbe58b862309fabfae996b94c441bf778b09df463 (diff)
downloadprism-ffe739eeb12d1bf9dadb2144e95fef79820c6844.tar.gz
prism-ffe739eeb12d1bf9dadb2144e95fef79820c6844.zip
Fixed possible unterminated strings in hash handling in commit code.
Diffstat (limited to 'db.h')
-rw-r--r--db.h4
1 files changed, 3 insertions, 1 deletions
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();