-$Id: CHANGES,v 1.114 2001/05/12 11:39:45 stelian Exp $
+$Id: CHANGES,v 1.115 2001/05/26 11:04:46 stelian Exp $
+
+Changes between versions 0.4b22 and 0.4b23 (released ????????????)
+==================================================================
+
+1. Fixed a buffer overflow in restore/tape.c. Patch provided by
+ Marcus Meissner (Caldera International Security Dept.).
Changes between versions 0.4b21 and 0.4b22 (released May 12, 2001)
==================================================================
#ifndef lint
static const char rcsid[] =
- "$Id: tape.c,v 1.38 2001/05/12 11:36:12 stelian Exp $";
+ "$Id: tape.c,v 1.39 2001/05/26 11:04:46 stelian Exp $";
#endif /* not lint */
#include <config.h>
return;
}
if (buf[0] != '\n') {
- (void) strcpy(magtape, buf);
- magtape[strlen(magtape) - 1] = '\0';
+ (void) strncpy(magtape, buf, sizeof(magtape));
+ magtape[sizeof(magtape) - 1] = '\0';
}
}
#ifdef RRESTORE