[libgtop] Cygwin: Don't printf a string directly but use %s instead
- From: Benoît Dejean <bdejean src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Cygwin: Don't printf a string directly but use %s instead
- Date: Sun, 28 Nov 2010 14:41:08 +0000 (UTC)
commit f7e1ab5a0e43fe2b34e5ace00e22cfa4167ac195
Author: Yaakov Selkowitz <yselkowitz users sourceforge net>
Date: Wed Jun 16 15:05:27 2010 -0500
Cygwin: Don't printf a string directly but use %s instead
Based on commit f41ab3beed3a2b90475c6057689575413b7b348b for Linux.
https://bugzilla.gnome.org/show_bug.cgi?id=621820
sysdeps/cygwin/glibtop_private.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sysdeps/cygwin/glibtop_private.c b/sysdeps/cygwin/glibtop_private.c
index 506cac4..c7112c3 100644
--- a/sysdeps/cygwin/glibtop_private.c
+++ b/sysdeps/cygwin/glibtop_private.c
@@ -124,7 +124,7 @@ int try_file_to_buffer(char *buffer, size_t bufsiz, const char *format, ...)
void
file_to_buffer(glibtop *server, char *buffer, size_t bufsiz, const char *filename)
{
- switch(try_file_to_buffer(buffer, bufsiz, filename))
+ switch(try_file_to_buffer(buffer, bufsiz, "%s", filename))
{
case TRY_FILE_TO_BUFFER_OPEN:
glibtop_error_io_r (server, "open (%s)", filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]