# HG changeset patch # User Yoshiki Yazawa # Date 1248102527 -32400 # Node ID 6bcdd17c12f6f6c4c043d53a87fb5c59d274c0b9 # Parent c8051f6da2ab3e9f735ee4a54ba429a5585d9b4e fixed a crash bug in HMS support diff -r c8051f6da2ab -r 6bcdd17c12f6 recpt1/recpt1.c --- a/recpt1/recpt1.c Sun Jul 19 05:24:39 2009 +0900 +++ b/recpt1/recpt1.c Tue Jul 21 00:08:47 2009 +0900 @@ -725,7 +725,7 @@ tmpstr = strdup(rectimestr); p1 = tmpstr; - while(!isdigit(*p1)) + while(*p1 && !isdigit(*p1)) p1++; /* hour */ @@ -733,7 +733,7 @@ *p2 = '\0'; recsec += atoi(p1) * 3600; p1 = p2 + 1; - while(!isdigit(*p1)) + while(*p1 && !isdigit(*p1)) p1++; } @@ -742,7 +742,7 @@ *p2 = '\0'; recsec += atoi(p1) * 60; p1 = p2 + 1; - while(!isdigit(*p1)) + while(*p1 && !isdigit(*p1)) p1++; }