[or-cvs] r9686: avoid a few headaches (tor/trunk/src/or)

arma at seul.org arma at seul.org
Wed Feb 28 20:24:10 UTC 2007


Author: arma
Date: 2007-02-28 15:24:09 -0500 (Wed, 28 Feb 2007)
New Revision: 9686

Modified:
   tor/trunk/src/or/config.c
Log:
avoid a few headaches


Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c	2007-02-28 18:57:03 UTC (rev 9685)
+++ tor/trunk/src/or/config.c	2007-02-28 20:24:09 UTC (rev 9686)
@@ -2637,13 +2637,15 @@
 
   if (options->BandwidthRate > ROUTER_MAX_DECLARED_BANDWIDTH) {
     r = tor_snprintf(buf, sizeof(buf),
-                     "BandwidthRate must be less than %d",INT32_MAX);
+                     "BandwidthRate must be at most %d",
+                     ROUTER_MAX_DECLARED_BANDWIDTH);
     *msg = tor_strdup(r >= 0 ? buf : "internal error");
     return -1;
   }
   if (options->BandwidthBurst > ROUTER_MAX_DECLARED_BANDWIDTH) {
     r = tor_snprintf(buf, sizeof(buf),
-                     "BandwidthBurst must be less than %d",INT32_MAX);
+                     "BandwidthBurst must be at most %d",
+                     ROUTER_MAX_DECLARED_BANDWIDTH);
     *msg = tor_strdup(r >= 0 ? buf : "internal error");
     return -1;
   }



More information about the tor-commits mailing list