Mercurial > pt1.oyama
changeset 49:6bcdd17c12f6
fixed a crash bug in HMS support
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 21 Jul 2009 00:08:47 +0900 |
parents | c8051f6da2ab |
children | 23b6f99f65b2 |
files | recpt1/recpt1.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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++; }