[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16540: {tor} Properly move forward char pointer after appending stuff to (tor/trunk/src/or)



Author: weasel
Date: 2008-08-14 08:37:28 -0400 (Thu, 14 Aug 2008)
New Revision: 16540

Modified:
   tor/trunk/src/or/dirserv.c
Log:
Properly move forward char pointer after appending stuff to the string

Modified: tor/trunk/src/or/dirserv.c
===================================================================
--- tor/trunk/src/or/dirserv.c	2008-08-14 12:37:21 UTC (rev 16539)
+++ tor/trunk/src/or/dirserv.c	2008-08-14 12:37:28 UTC (rev 16540)
@@ -1943,6 +1943,7 @@
       log_warn(LD_BUG, "Unable to print router version.");
       return -1;
     }
+    cp += strlen(cp);
   }
 
   if (!v2_format) {
@@ -1953,6 +1954,7 @@
       log_warn(LD_BUG, "Not enough space in buffer.");
       return -1;
     }
+    cp += strlen(cp);
 
     summary = policy_summarize(desc->exit_policy);
     if (summary) {
@@ -1961,6 +1963,7 @@
         log_warn(LD_BUG, "Not enough space in buffer.");
         return -1;
       }
+      cp += strlen(cp);
       tor_free(summary);
     }
   }