Parcourir la source

Fix a compile warning on OSX 10.6

Sebastian Hahn il y a 14 ans
Parent
commit
c13fb7feb1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/or/connection.c

+ 1 - 1
src/or/connection.c

@@ -3233,7 +3233,7 @@ alloc_http_authenticator(const char *authenticator)
     tor_free(base64_authenticator); /* free and set to null */
   } else {
     int i = 0, j = 0;
-    int len = strlen(base64_authenticator);
+    ssize_t len = strlen(base64_authenticator);
 
     /* remove all newline occurrences within the string */
     for (i=0; i < len; ++i) {