diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-18 15:38:44 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-18 15:38:44 -0600 |
commit | bc9802573b60e53b2e60fa3531448a77559b4bb8 (patch) | |
tree | c0b3f929028eddee1b4905745afa3004bc4b7485 | |
parent | b0d81df132c63e00e3c834b971487ae4a1a1c73f (diff) | |
download | nuttx-bc9802573b60e53b2e60fa3531448a77559b4bb8.tar.gz nuttx-bc9802573b60e53b2e60fa3531448a77559b4bb8.tar.bz2 nuttx-bc9802573b60e53b2e60fa3531448a77559b4bb8.zip |
Ooops... I left out a semicolon in the last sscanf() commit
-rw-r--r-- | nuttx/libc/stdio/lib_sscanf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/libc/stdio/lib_sscanf.c b/nuttx/libc/stdio/lib_sscanf.c index 3873950bc..191ebe394 100644 --- a/nuttx/libc/stdio/lib_sscanf.c +++ b/nuttx/libc/stdio/lib_sscanf.c @@ -1,7 +1,7 @@ /**************************************************************************** * libc/stdio/lib_sscanf.c * - * Copyright (C) 2007, 2008, 2011-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008, 2011-2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -57,11 +57,11 @@ #define MAXLN 128 #ifndef MIN -# define MIN(a,b) (a < b ? a : b) +# define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef MAX -# define MAX(a,b) (a > b ? a : b) +# define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif /**************************************************************************** @@ -438,7 +438,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap) { /* No... Guess a field width using some heuristics */ - int tmpwidth = findwidth(buf, fmt) + int tmpwidth = findwidth(buf, fmt); width = MIN(sizeof(tmp) - 1, tmpwidth); } |