patch-src_tcptraceroute_c 650 B

1234567891011121314151617181920
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- ndisc6-0.9.8.orig/src/tcptraceroute.c 2008-05-01 14:52:28.000000000 +0200
  3. +++ ndisc6-0.9.8/src/tcptraceroute.c 2009-05-10 19:15:28.000000000 +0200
  4. @@ -114,6 +114,7 @@ static const char bin_name[] = RLTRACERO
  5. int main (int argc, char *argv[])
  6. {
  7. + int i;
  8. setlocale (LC_ALL, "");
  9. bindtextdomain (PACKAGE, LOCALEDIR);
  10. textdomain (PACKAGE);
  11. @@ -130,7 +131,7 @@ int main (int argc, char *argv[])
  12. /* Prepare big enough buffers */
  13. unsigned len = 0;
  14. - for (int i = 1; i < argc; i++)
  15. + for (i = 1; i < argc; i++)
  16. len += strlen (argv[i]);
  17. char optbuf[3 * len + argc], *buf = optbuf;