From: Jim Meyering Date: Sun, 28 Apr 2002 23:54:06 +0000 (+0000) Subject: (make_id_equals_comment): Cast sizeof expression (used as field X-Git-Tag: SH-UTILS-2_0_12~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=550a02c909fc48ea993145dd88712f976ca6c8e0;p=platform%2Fupstream%2Fcoreutils.git (make_id_equals_comment): Cast sizeof expression (used as field width argument) to `int'. --- 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; }