* src/who.c (print_runlevel): Print last=%c only when the "preceding
run-level" byte is printable. Reported by Gian Piero De Lolliis in
<http://bugzilla.redhat.com/453249>.
#include <sys/types.h>
#include "system.h"
#include <sys/types.h>
#include "system.h"
#include "canon-host.h"
#include "readutmp.h"
#include "error.h"
#include "canon-host.h"
#include "readutmp.h"
#include "error.h"
sprintf (comment, "%s%c", _("last="), (last == 'N') ? 'S' : last);
print_line (-1, "", ' ', -1, runlevline, time_string (utmp_ent),
sprintf (comment, "%s%c", _("last="), (last == 'N') ? 'S' : last);
print_line (-1, "", ' ', -1, runlevline, time_string (utmp_ent),
+ "", "", c_isprint (last) ? comment : "", "");