[gnome-color-manager/gnome-2-32] 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/gnome-2-32] trivial: do not pad the EISA to 12 bytes, allow the NULL byte to terminate the string
- Date: Tue, 5 Oct 2010 11:13:17 +0000 (UTC)
commit 5a8a2a2f3e943214a59892603af341466b9a1ea5
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
src/gcm-edid.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-edid.c b/src/gcm-edid.c
index 6ca986d..aa5d35c 100644
--- a/src/gcm-edid.c
+++ b/src/gcm-edid.c
@@ -273,7 +273,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]