summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/help.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-09 22:39:57 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-09 22:39:57 +0300
commita1f2245a81cb9e99cc620797e54a003bf0907b16 (patch)
tree556c63e3ab6c0cc31b7916ca7a4bc0821a8b7b65 /esp8266/help.c
parent6de8dbb4880e58c68a08205cb2b9c15940143439 (diff)
downloadmicropython-a1f2245a81cb9e99cc620797e54a003bf0907b16.tar.gz
micropython-a1f2245a81cb9e99cc620797e54a003bf0907b16.zip
py/vstr: vstr_null_terminated_str(): Extend string by at most one byte.
vstr_null_terminated_str is almost certainly a vstr finalization operation, so it should add the requested NUL byte, and not try to pre-allocate more. The previous implementation could actually allocate double of the buffer size.
Diffstat (limited to 'esp8266/help.c')
0 files changed, 0 insertions, 0 deletions