aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-06-09 07:34:27 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-06-09 07:34:27 +0000
commitdb0b35d139c255d07b1801de69763fcb9ce310f0 (patch)
tree0974321b68dedd4a9c581dd10f7e2a71c4587804 /usr.sbin
parentd230d4275aef34bea1c1fd8e672a162cdc321492 (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/yppush/yppush_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/yppush/yppush_main.c b/usr.sbin/yppush/yppush_main.c
index 12137eef3a8f..fb9e0783c263 100644
--- a/usr.sbin/yppush/yppush_main.c
+++ b/usr.sbin/yppush/yppush_main.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: yppush_main.c,v 1.3 1996/04/03 03:24:03 wpaul Exp $
+ * $Id: yppush_main.c,v 1.4 1996/04/29 05:24:26 wpaul Exp $
*/
#include <stdio.h>
@@ -53,7 +53,7 @@ struct dom_binding {};
#include "yppush_extern.h"
#ifndef lint
-static const char rcsid[] = "$Id: yppush_main.c,v 1.3 1996/04/03 03:24:03 wpaul Exp $";
+static const char rcsid[] = "$Id: yppush_main.c,v 1.4 1996/04/29 05:24:26 wpaul Exp $";
#endif
char *progname = "yppush";
@@ -628,7 +628,8 @@ main(argc,argv)
#endif
}
- yppush_master = strdup(data.data);
+ yppush_master = malloc(data.size + 1);
+ strncpy(yppush_master, data.data, data.size);
yppush_master[data.size] = '\0';
/* Install some handy handlers. */