diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-10 20:36:44 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-10 20:36:44 +0100 |
commit | 6ad1ef901b7a07bc8b070e64c4bf5e53f708cb7b (patch) | |
tree | 91ba47496c1be5fb3ef895f254fad5af41705a93 /src/port/snprintf.c | |
parent | 4d32ec5ab668d02c5b3dee83f0d8275b70e9014d (diff) | |
download | wolfbones-6ad1ef901b7a07bc8b070e64c4bf5e53f708cb7b.tar.gz wolfbones-6ad1ef901b7a07bc8b070e64c4bf5e53f708cb7b.tar.bz2 |
fixed snprintf on native Windows
Diffstat (limited to 'src/port/snprintf.c')
-rw-r--r-- | src/port/snprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c index f5731b0..8359cb5 100644 --- a/src/port/snprintf.c +++ b/src/port/snprintf.c @@ -937,10 +937,12 @@ out: else if (size > 0) str[size - 1] = '\0'; +/* That is not conforming to ISO C99! if (overflow || len >= INT_MAX) { errno = overflow ? EOVERFLOW : ERANGE; return -1; } +*/ return (int)len; } |