[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-159-gefb5dba)
The branch, master has been updated
via efb5dba68395549c7e970f3506148194eb4b30c6 (commit)
from 2d888258d954c993aa03e4a1beb7b03e62df4d95 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
libgeda/src/s_color.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit efb5dba68395549c7e970f3506148194eb4b30c6
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Thu Jan 8 01:16:08 2009 +0000
libgeda: Use strlen rather than strnlen, which is a GNU extension.
Helps buy us some portabilty. In the case changed, the string is
going to be NULL terminted, so the length cap doesn't buy us anything.
:100644 100644 012731b... 2fbb6a0... M libgeda/src/s_color.c
=========
Changes
=========
commit efb5dba68395549c7e970f3506148194eb4b30c6
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Thu Jan 8 01:16:08 2009 +0000
libgeda: Use strlen rather than strnlen, which is a GNU extension.
Helps buy us some portabilty. In the case changed, the string is
going to be NULL terminted, so the length cap doesn't buy us anything.
diff --git a/libgeda/src/s_color.c b/libgeda/src/s_color.c
index 012731b..2fbb6a0 100644
--- a/libgeda/src/s_color.c
+++ b/libgeda/src/s_color.c
@@ -142,7 +142,7 @@ s_color_rgba_decode (const gchar *rgba,
*r = 0xff; *g = 0xff; *b = 0xff; *a = 0xff;
/* Check that the string is a valid length and starts with a '#' */
- len = strnlen (rgba, 10);
+ len = strlen (rgba);
if ((len != 9 && len != 7) || rgba[0] != '#')
return FALSE;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs