summaryrefslogtreecommitdiff
path: root/nuttx/libc/stdio
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-15 18:07:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-15 18:07:34 +0000
commitad1878e8fe6fa997672a83ffe8bbee9883649781 (patch)
tree658250c1a0e09eafe3ccdf0038f854697d2b870f /nuttx/libc/stdio
parent327a0b5bfe1c679660c9d0ef41f9f5519215176c (diff)
downloadpx4-nuttx-ad1878e8fe6fa997672a83ffe8bbee9883649781.tar.gz
px4-nuttx-ad1878e8fe6fa997672a83ffe8bbee9883649781.tar.bz2
px4-nuttx-ad1878e8fe6fa997672a83ffe8bbee9883649781.zip
Prep for 6.26 releasenuttx-6.26
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5745 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/libc/stdio')
-rw-r--r--nuttx/libc/stdio/lib_sscanf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/libc/stdio/lib_sscanf.c b/nuttx/libc/stdio/lib_sscanf.c
index 77a6cf212..3666cbf2b 100644
--- a/nuttx/libc/stdio/lib_sscanf.c
+++ b/nuttx/libc/stdio/lib_sscanf.c
@@ -197,6 +197,11 @@ int vsscanf(FAR char *buf, FAR const char *fmt, va_list ap)
noassign = false;
lflag = false;
+ /* NOTE that there is a flaw in this loop logic: The fmt string often
+ * terminates with %n which would have to be processes at the end of the
+ * buf string. That won't happen here.
+ */
+
while (*fmt && *buf)
{
/* Skip over white space */