masqmail

changeset 255:2e7d3a02edb1

removed a magic number from time_interval()
author markus schnalke <meillo@marmaro.de>
date Thu, 04 Nov 2010 14:56:47 -0300
parents 82d168dd52fd
children d4d0defaf769
files src/timeival.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/timeival.c	Thu Nov 04 14:45:42 2010 -0300
     1.2 +++ b/src/timeival.c	Thu Nov 04 14:56:47 2010 -0300
     1.3 @@ -28,7 +28,7 @@
     1.4  	gchar *p = str, *q = buf;
     1.5  	gint factor = 1, val;
     1.6  
     1.7 -	while (*p && isdigit(*p) && (q < buf + 15)) {
     1.8 +	while (*p && isdigit(*p) && (q < buf+sizeof(buf)-1)) {
     1.9  		*(q++) = *(p++);
    1.10  	}
    1.11  	*q = '\0';