[gnome-color-manager] trivial: do not pad the EISA to 12 bytes, allow the NULL byte to terminate the string
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: do not pad the EISA to 12 bytes, allow the NULL byte to terminate the string
- Date: Fri, 1 Oct 2010 09:38:12 +0000 (UTC)
commit 7d446002451474d36adaa7b8001e4a7d3fb990b1
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 1 10:05:19 2010 +0100
trivial: do not pad the EISA to 12 bytes, allow the NULL byte to terminate the string
libcolor-glib/gcm-edid.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcolor-glib/gcm-edid.c b/libcolor-glib/gcm-edid.c
index 654fb75..0830bde 100644
--- a/libcolor-glib/gcm-edid.c
+++ b/libcolor-glib/gcm-edid.c
@@ -356,7 +356,7 @@ gcm_edid_parse_string (const guint8 *data)
}
/* ensure string is printable */
- for (i=0;i<12;i++) {
+ for (i=0; text[i] != '\0'; i++) {
if (!g_ascii_isprint (text[i])) {
text[i] = '-';
replaced++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]