the memset can be removed because strncpy() should padd the
buffer with NULLs anyway.
+2005-03-29 Daniel P. Ottavio <dottavio@ic.sunysb.edu>
+
+ * amd/nfs_subr.c (fh_to_mp3): Fix memset bug. In this case
+ the memset can be removed because strncpy() should padd the
+ buffer with NULLs anyway.
+
2005-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* include/am_defs.h: Clarify comment.
* SUCH DAMAGE.
*
*
- * $Id: nfs_subr.c,v 1.23 2005/02/17 21:32:05 ezk Exp $
+ * $Id: nfs_subr.c,v 1.24 2005/03/30 04:57:39 ottavio Exp $
*
*/
if (fp->fhh_type != 0) {
/* New filehandle type */
char *path = xmalloc(sizeof(*fhp) + 1);
- memset(path, 0, sizeof(fhp) + 1);
strncpy(path, (char *) fhp, sizeof(*fhp));
/* dlog("fh_to_mp3: new filehandle: %s", path); */