Fix time_t args

This commit is contained in:
Andrey Slusar
2005-09-05 09:12:10 +00:00
parent fffc3de8b6
commit 8692f86c7f
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -547,7 +547,7 @@ static int zmodem_proc_ZFILE(s_protinfo *pi, char *blkptr, size_t blklen)
fileiptr = blkptr + strlen(blkptr) + 1;
if( fileiptr >= (blkptr + blklen) ||
sscanf(fileiptr, "%d%lo", &filesize, &filetime) < 1 )
sscanf(fileiptr, "%d%lo", &filesize, (unsigned long *)&filetime) < 1 )
{
log("zmodem: got invalid ZFILE packet");
return 1;