Date: Fri, 3 Jun 2016 03:53:21 GMT From: yuanxunzhang@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r304453 - soc2016/yuanxunzhang/head/usr.sbin/eaps Message-ID: <201606030353.u533rLZ2087228@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuanxunzhang Date: Fri Jun 3 03:53:20 2016 New Revision: 304453 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=304453 Log: freeBSD:EAPS development Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c ============================================================================== --- soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Fri Jun 3 03:51:19 2016 (r304452) +++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Fri Jun 3 03:53:20 2016 (r304453) @@ -98,14 +98,15 @@ { int error = 0; struct eaps_d *eaps_new; - - warnx("Create EAPS domain %s", *(++argv)); + char *domain_name = *(++argv); + + warnx("Create EAPS domain %s", domain_name); eaps_new = (struct eaps_d *) malloc (sizeof(struct eaps_d)); - strlcpy(eaps_new->eaps_name, *(++argv), sizeof(eaps_new->eaps_name)); + strlcpy(eaps_new->eaps_name, domain_name, sizeof(eaps_new->eaps_name)); /* Add to keymap list */ SLIST_INSERT_HEAD(&eaps_head, eaps_new, eaps_entries); - + exit(error); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606030353.u533rLZ2087228>