Sfoglia il codice sorgente

Fix a compile warning on OSX 10.6

Sebastian Hahn 14 anni fa
parent
commit
c13fb7feb1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {