aboutsummaryrefslogtreecommitdiff
path: root/login/pututline_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/pututline_r.c')
-rw-r--r--login/pututline_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/pututline_r.c b/login/pututline_r.c
index 824cf3a391..62fc83bd58 100644
--- a/login/pututline_r.c
+++ b/login/pututline_r.c
@@ -63,7 +63,7 @@ pututline_r (const struct utmp *id, struct utmp_data *utmp_data)
if (utmp_data->ubuf.ut_type != id->ut_type)
{
/* We must not overwrite the data in UTMP_DATA. */
- struct utmp_data *data_tmp = alloca (sizeof (utmp_data));
+ struct utmp_data *data_tmp = alloca (sizeof (*data_tmp));
struct utmp *dummy;
*data_tmp = *utmp_data;