X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump%2Fitime.c;h=64d7644c6f8123f4e6ec31e1fb17602b030b015c;hb=960c1264ff3c6074d6ec91439eff9afd4640e56c;hp=09b1f3365a4c858a174fa33492899fd4fa375954;hpb=ebcbe7f6c10482913b60fc792e72e494b439b242;p=dump.git diff --git a/dump/itime.c b/dump/itime.c index 09b1f33..64d7644 100644 --- a/dump/itime.c +++ b/dump/itime.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: itime.c,v 1.9 2000/01/21 10:17:41 stelian Exp $"; + "$Id: itime.c,v 1.10 2000/03/01 10:16:05 stelian Exp $"; #endif /* not lint */ #include @@ -299,7 +299,7 @@ makedumpdate(struct dumpdates *ddp, char *tbuf) /* device name */ if ( NULL == (tok = strsep( &tbuf, " ")) ) return(-1); - if ( strlen(tok) > NAME_MAX ) + if ( strlen(tok) > MAXPATHLEN ) return(-1); strcpy(ddp->dd_name, tok);