WiP
[oweals/gnunet.git] / src / util / crypto_hash.c
index 9e5af4ab51da6715465cb563ede18925bbe0fdcb..88c7ddd19a6fe2d17633739083833e9cad3fcc73 100644 (file)
@@ -141,7 +141,7 @@ file_hash_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   size_t delta;
 
   fhc->task = GNUNET_SCHEDULER_NO_TASK;
-  GNUNET_assert (fhc->offset < fhc->fsize);
+  GNUNET_assert (fhc->offset <= fhc->fsize);
   delta = fhc->bsize;
   if (fhc->fsize - fhc->offset < delta)
     delta = fhc->fsize - fhc->offset;
@@ -252,7 +252,7 @@ getValue__ (unsigned char a)
  * Convert GNUNET_CRYPTO_hash to ASCII encoding.  The ASCII encoding is rather
  * GNUnet specific.  It was chosen such that it only uses characters
  * in [0-9A-V], can be produced without complex arithmetics and uses a
- * small number of characters.  The GNUnet encoding uses 102
+ * small number of characters.  The GNUnet encoding uses 103
  * characters plus a null terminator.
  *
  * @param block the hash code