Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make pk_console_get_prompt() big endian safe
  • Loading branch information
hughsie committed May 16, 2016
1 parent 14abc1b commit 710a944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/packagekit-glib2/pk-console-shared.c
Expand Up @@ -116,7 +116,8 @@ pk_readline_unbuffered (const gchar *prompt)
g_warning ("Got unexpected EOF.");
break;
} else {
g_string_append_len (str, (const gchar *) &c, 1);
gchar c_safe = (gchar) c;
g_string_append_len (str, (const gchar *) &c_safe, 1);
}
}
tcsetattr (fileno (tty), TCSAFLUSH, &ots);
Expand Down

0 comments on commit 710a944

Please sign in to comment.