[vicious-extensions] No longer print strings in wrong encoding since it can cause the password to get printed to the sysl
- From: Brian Cameron <bcameron src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vicious-extensions] No longer print strings in wrong encoding since it can cause the password to get printed to the sysl
- Date: Thu, 3 Jun 2010 01:12:41 +0000 (UTC)
commit cc9b408fe8e3fc54d67e6ac6b178902467f45ecd
Author: Brian Cameron <Brian Cameron sun com>
Date: Wed Jun 2 20:07:30 2010 -0500
No longer print strings in wrong encoding since it can cause the password
to get printed to the syslog if debug is enabled.
ve-misc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/ve-misc.c b/ve-misc.c
index 46301a3..f138ac0 100644
--- a/ve-misc.c
+++ b/ve-misc.c
@@ -257,7 +257,7 @@ ve_locale_to_utf8 (const char *str)
{
char *ret = g_locale_to_utf8 (str, -1, NULL, NULL, NULL);
if (ret == NULL) {
- g_warning ("string not in proper locale encoding: \"%s\"", str);
+ g_warning ("string not in proper locale encoding");
return g_strdup (str);
} else {
return ret;
@@ -269,7 +269,7 @@ ve_locale_from_utf8 (const char *str)
{
char *ret = g_locale_from_utf8 (str, -1, NULL, NULL, NULL);
if (ret == NULL) {
- g_warning ("string not in proper utf8 encoding: \"%s\"", str);
+ g_warning ("string not in proper utf8 encoding");
return g_strdup (str);
} else {
return ret;
@@ -281,7 +281,7 @@ ve_filename_to_utf8 (const char *str)
{
char *ret = g_filename_to_utf8 (str, -1, NULL, NULL, NULL);
if (ret == NULL) {
- g_warning ("string not in proper locale encoding: \"%s\"", str);
+ g_warning ("string not in proper locale encoding");
return g_strdup (str);
} else {
return ret;
@@ -293,7 +293,7 @@ ve_filename_from_utf8 (const char *str)
{
char *ret = g_filename_from_utf8 (str, -1, NULL, NULL, NULL);
if (ret == NULL) {
- g_warning ("string not in proper utf8 encoding: \"%s\"", str);
+ g_warning ("string not in proper utf8 encoding");
return g_strdup (str);
} else {
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]