summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console/ChangeLog5
-rw-r--r--console/console.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/console/ChangeLog b/console/ChangeLog
index 7422ee61..45b0dc99 100644
--- a/console/ChangeLog
+++ b/console/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * console.c (parse_color): Check the character pointed by tail instead
+ of its address.
+
2007-11-13 Thomas Schwinge <tschwinge@gnu.org>
* console.c (netfs_attempt_utimes): Adapt to ``struct stat'' changes.
diff --git a/console/console.c b/console/console.c
index e4c6183d..991de2ae 100644
--- a/console/console.c
+++ b/console/console.c
@@ -1364,7 +1364,7 @@ parse_color (const char *name, int *number)
errno = 0;
nr = strtol (name, &tail, 0);
- if (errno || &tail || nr < 0 || nr > CONS_COLOR_MAX)
+ if (errno || *tail || nr < 0 || nr > CONS_COLOR_MAX)
return EINVAL;
*number = nr;
return 0;