Skip to content

Commit

Permalink
Merge pull request Samsung#2437 from shadaksharikp/lib
Browse files Browse the repository at this point in the history
C library: modify sscanf to read more than 128byte
  • Loading branch information
sunghan-chang authored Nov 16, 2018
2 parents e4eaf08 + 9ee2a8c commit 2618675
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/libc/stdio/lib_sscanf.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

#define MAXLN 128

#ifndef MIN
Expand Down Expand Up @@ -452,7 +451,6 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
width = fwidth;
}

width = MIN(sizeof(tmp) - 1, width);

/* Copy the string (if we are making an assignment) */

Expand Down Expand Up @@ -511,7 +509,6 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
width = fwidth;
}

width = MIN(sizeof(tmp) - 1, width);

/* Copy the string (if we are making an assignment) */

Expand Down

0 comments on commit 2618675

Please sign in to comment.