Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-07-08 22:28:46 +0400
committerJeff Johnston <jjohnstn@redhat.com>2005-07-08 22:28:46 +0400
commit88540e248e68388fdea438e7b64e9e63f2ad5dcf (patch)
treec35d83ebd8972f3d581dba247d91e9893df1d74e /newlib
parent2413281e1366c9e353a7530da520f24cd7df4a32 (diff)
2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
* libc/string/wcsspn.c (wcsspn): Add missing increment of q.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/string/wcsspn.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index defc350a7..4f9193cd1 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,6 +1,10 @@
+2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
+
+ * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
+
2005-07-07 Shaun Jackman <sjackman@gmail.com>
- * newlib/libc/unix/ttyname.c (ttyname): Avoid calling _closedir
+ * libc/unix/ttyname.c (ttyname): Avoid calling _closedir
twice for the same directory. _closedir calls free, and freeing
the same pointer twice may cause a crash.
diff --git a/newlib/libc/string/wcsspn.c b/newlib/libc/string/wcsspn.c
index f0b2fb99f..b54804c45 100644
--- a/newlib/libc/string/wcsspn.c
+++ b/newlib/libc/string/wcsspn.c
@@ -75,6 +75,7 @@ _DEFUN (wcsspn, (s, set),
{
if (*p == *q)
break;
+ q++;
}
if (!*q)
goto done;