Commit 3474ec4e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

_num_chars did wrong when called with a number that starts with 1!

parent ec1736d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ static int _num_chars(int i)
    chars++;

    i = (int) i / 10;
  } while (i > 1);
  } while (i >= 1);

  return chars;
}