Re: [PATCH] cgit: use strtol_i instead of atoi

2015-05-13 Thread John Keeping
On Wed, May 13, 2015 at 03:35:29PM +0200, Jason A. Donenfeld wrote: Anybody have any objections to this? In some cases it's slightly more verbose, but otherwise, I can't see any downsides. It's worse if there is trailing data. Since there's nothing obvious we can do if the input is bad, I'm

Re: [PATCH] cgit: use strtol_i instead of atoi

2015-05-13 Thread Jason A. Donenfeld
Anybody have any objections to this? In some cases it's slightly more verbose, but otherwise, I can't see any downsides. ___ CGit mailing list CGit@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/cgit

Re: [PATCH] cgit: use strtol_i instead of atoi

2015-05-13 Thread Jamie Couture
On Wed, May 13, 2015 at 02:45:56PM +0100, John Keeping wrote: On Wed, May 13, 2015 at 02:41:24PM +0100, John Keeping wrote: On Wed, May 13, 2015 at 03:35:29PM +0200, Jason A. Donenfeld wrote: Anybody have any objections to this? In some cases it's slightly more verbose, but otherwise, I