avoid problems with non-conforming strncpy. This is safe here.
2004-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libltdl/ltdl.c (trim): Use memcpy instead of strncpy here, to
+ avoid problems with non-conforming strncpy. This is safe here.
+
* m4/ltdl.m4 (LT_LIB_DLLOAD): Define HAVE_LIBDLLOADER if we
have a dlloader to preload.
* libltdl/ltdl.c (lt_dlinit): Only preload if HAVE_LIBDLLOADER, only
if (!tmp)
return 1;
- strncpy(tmp, &str[1], (end - str) - 1);
+ memcpy(tmp, &str[1], (end - str) - 1);
tmp[len-3] = LT_EOS_CHAR;
*dest = tmp;
}