[or-cvs] More digest/nickname fixes

Nick Mathewson nickm at seul.org
Fri Jul 2 23:40:05 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv18206/src/common

Modified Files:
	crypto.c 
Log Message:
More digest/nickname fixes

Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- crypto.c	1 Jul 2004 01:16:58 -0000	1.95
+++ crypto.c	2 Jul 2004 23:40:03 -0000	1.96
@@ -1448,7 +1448,7 @@
     ++src;
     cp += 2;
   }
-  *dest = '\0';
+  *cp = '\0';
   return 0;
 }
 
@@ -1484,6 +1484,7 @@
       return -1;
     *(uint8_t*)dest = (v1<<4)|v2;
     ++dest;
+    src+=2;
   }
   *dest = '\0';
   return 0;



More information about the tor-commits mailing list