1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

fixed issue with buffer limit 1 less than it should have been

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@225 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich 2012-06-01 11:23:00 +00:00
parent c0074b3044
commit fec170a640
2 changed files with 3 additions and 4 deletions

View File

@ -350,7 +350,7 @@ EXP_FUNC int STDCALL base64_decode(const char *in, int len,
} }
/* check that we don't go past the output buffer */ /* check that we don't go past the output buffer */
if (z >= *outlen) if (z > *outlen)
goto error; goto error;
} }
@ -358,7 +358,6 @@ EXP_FUNC int STDCALL base64_decode(const char *in, int len,
goto error; goto error;
*outlen = z; *outlen = z;
ret = 0; ret = 0;
error: error:

File diff suppressed because one or more lines are too long