summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/who.c b/src/who.c
index 3507b2864..c57e14fd8 100644
--- a/src/who.c
+++ b/src/who.c
@@ -393,7 +393,7 @@ static char *
make_id_equals_comment (STRUCT_UTMP const *utmp_ent)
{
char *comment = xmalloc (sizeof (_("id=")) + sizeof UT_ID (utmp_ent) + 1);
- sprintf (comment, "%s%.*s", _("id="), sizeof UT_ID (utmp_ent),
+ sprintf (comment, "%s%.*s", _("id="), (int) sizeof UT_ID (utmp_ent),
UT_ID (utmp_ent));
return comment;
}