Documentation: wording fixes in the user manual and glossary
[gitweb.git] / reflog-walk.c
index 2899729a8cbec4766182a1562c0c96d643de3a71..0dd5084fe5c80fe9504cfe4ec4bff3722b733eaf 100644 (file)
@@ -28,8 +28,8 @@ static int read_one_reflog(unsigned char *osha1, unsigned char *nsha1,
 
        ALLOC_GROW(array->items, array->nr + 1, array->alloc);
        item = array->items + array->nr;
-       memcpy(item->osha1, osha1, 20);
-       memcpy(item->nsha1, nsha1, 20);
+       hashcpy(item->osha1, osha1);
+       hashcpy(item->nsha1, nsha1);
        item->email = xstrdup(email);
        item->timestamp = timestamp;
        item->tz = tz;