summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-11-20 20:13:27 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-11-20 20:13:27 +0300
commit2f072eba3d0f045cd540d29ba2f5c195f056793b (patch)
tree40186c242ee8efb94ef0aedfc1a25584668dacff
parentb5fee831eedf9ea8282aa35f12053c1b1ebaf29d (diff)
downloadaccel-ppp-2f072eba3d0f045cd540d29ba2f5c195f056793b.tar.gz
accel-ppp-2f072eba3d0f045cd540d29ba2f5c195f056793b.zip
replace mktemp with mkstemp
-rw-r--r--accel-pppd/extra/pppd_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/extra/pppd_compat.c b/accel-pppd/extra/pppd_compat.c
index 482a7080..25223a87 100644
--- a/accel-pppd/extra/pppd_compat.c
+++ b/accel-pppd/extra/pppd_compat.c
@@ -429,7 +429,7 @@ static void write_radattr(struct pppd_compat_pd *pd, struct rad_packet_t *pack)
}
} else {
sprintf(fname1, "%s.XXXXXX", conf_radattr_prefix);
- mktemp(fname1);
+ mkstemp(fname1);
}
f = fopen(fname1, "w");