[gjs] console: Add a missing format string
- From: Tobias Mueller <tobiasmue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] console: Add a missing format string
- Date: Sat, 9 Apr 2011 15:36:10 +0000 (UTC)
commit 5644745ad60b1e1c24ae97258a6ac254b2b89c17
Author: Tobias Mueller <tobiasmue gnome org>
Date: Fri Apr 8 03:52:44 2011 +0200
console: Add a missing format string
https://bugzilla.gnome.org/show_bug.cgi?id=647127
modules/console.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/console.c b/modules/console.c
index 49f891b..ba4b5b6 100644
--- a/modules/console.c
+++ b/modules/console.c
@@ -145,7 +145,7 @@ static JSBool
gjs_console_readline(JSContext *cx, char **bufp, FILE *file, const char *prompt)
{
char line[256];
- fprintf(stdout, prompt);
+ fprintf(stdout, "%s", prompt);
fflush(stdout);
if (!fgets(line, sizeof line, file))
return JS_FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]