merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -73,7 +73,7 @@ pop_dropcopy(POP *p, struct passwd *pwp)
|
||||
* running as root.
|
||||
*/
|
||||
|
||||
strcpy(template, POP_TMPDROP);
|
||||
strcpy_truncate(template, POP_TMPDROP, sizeof(template));
|
||||
if ((tf_fd = mkstemp(template)) < 0 ||
|
||||
(tf = fdopen(tf_fd, "w+")) == NULL) {
|
||||
pop_log(p,POP_PRIORITY,
|
||||
|
Reference in New Issue
Block a user