summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/crypto/arcfour/ChangeLog4
-rw-r--r--src/lib/crypto/arcfour/arcfour_s2k.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/crypto/arcfour/ChangeLog b/src/lib/crypto/arcfour/ChangeLog
index 8f6d3d53d..1eaac886c 100644
--- a/src/lib/crypto/arcfour/ChangeLog
+++ b/src/lib/crypto/arcfour/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-19 Ken Raeburn <raeburn@mit.edu>
+
+ * arcfour_s2k.c (asctouni): Counter should be size_t, like len.
+
2005-07-02 Ken Raeburn <raeburn@mit.edu>
* arcfour_s2k.c: Renamed from string_to_key.c.
diff --git a/src/lib/crypto/arcfour/arcfour_s2k.c b/src/lib/crypto/arcfour/arcfour_s2k.c
index 57a64b3e9..efa92bfb1 100644
--- a/src/lib/crypto/arcfour/arcfour_s2k.c
+++ b/src/lib/crypto/arcfour/arcfour_s2k.c
@@ -4,7 +4,7 @@
static void asctouni(unsigned char *unicode, unsigned char *ascii, size_t len)
{
- int counter;
+ size_t counter;
for (counter=0;counter<len;counter++) {
unicode[2*counter]=ascii[counter];
unicode[2*counter + 1]=0x00;