[or-cvs] r9375: And remove another strcpy. (in tor/trunk: . src/common)
nickm at seul.org
nickm at seul.org
Sat Jan 20 03:35:04 UTC 2007
Author: nickm
Date: 2007-01-19 22:35:03 -0500 (Fri, 19 Jan 2007)
New Revision: 9375
Modified:
tor/trunk/
tor/trunk/src/common/crypto.c
Log:
r9689 at catbus: nickm | 2007-01-19 22:34:20 -0500
And remove another strcpy.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r9689] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/common/crypto.c
===================================================================
--- tor/trunk/src/common/crypto.c 2007-01-19 21:25:32 UTC (rev 9374)
+++ tor/trunk/src/common/crypto.c 2007-01-20 03:35:03 UTC (rev 9375)
@@ -1027,7 +1027,7 @@
NEVER_TERMINATE)<0)
return -1;
} else {
- strcpy(fp_out, hexdigest);
+ strncpy(fp_out, hexdigest, HEX_DIGEST_LEN+1);
}
return 0;
}
More information about the tor-commits
mailing list