summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-07-11 12:59:15 +0200
committercremno <[email protected]>2014-07-11 13:03:13 +0200
commit9d597f4d9f421d7d1b8b3b6788e2c9add1f3b4e6 (patch)
treec667e767893c52ee84a1e6fe75cf100aacf6c174 /include/mruby.h
parentec45dbe16a418f58414f039f1a3b734cd14f63b8 (diff)
downloadmruby-9d597f4d9f421d7d1b8b3b6788e2c9add1f3b4e6.tar.gz
mruby-9d597f4d9f421d7d1b8b3b6788e2c9add1f3b4e6.zip
allocate `history_path` dynamically
`PATH_MAX` doesn't have to be defined and if it is, then its value is usually incorrect (possible buffer overflow). Use `malloc` and `snprintf` instead to prevent this. https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
Diffstat (limited to 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions