X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump%2Fitime.c;h=64d7644c6f8123f4e6ec31e1fb17602b030b015c;hb=92a9bf12543aadfcc46e7ab9c2729b4d4d1f22ee;hp=e9a9802a0f7e78327204e509a07935966b8e7b47;hpb=2e6828953e9c505e76a17eec441fc714c6579922;p=dump.git diff --git a/dump/itime.c b/dump/itime.c index e9a9802..64d7644 100644 --- a/dump/itime.c +++ b/dump/itime.c @@ -2,7 +2,7 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999 + * Stelian Pop , 1999-2000 */ /*- @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: itime.c,v 1.8 2000/01/07 19:24:04 tiniou 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);