File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ matrix:
21
21
env : BUILD_DOCS=true
22
22
23
23
install :
24
- - pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
24
+ - pip install -q --use-mirrors nose python-dateutil numpy pep8==1.5.7 pyparsing pillow
25
25
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools mencoder
26
26
# We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
27
27
- if [[ $BUILD_DOCS == true ]]; then sudo apt-get install -qq --no-install-recommends dvipng texlive-latex-base texlive-latex-extra texlive-fonts-recommended graphviz; fi
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ Printf::Printf(const char *fmt, ...)
18
18
{
19
19
va_list ap;
20
20
va_start (ap, fmt);
21
- vsprintf (buffer, fmt, ap);
21
+ vsnprintf (buffer, 1024 , fmt, ap);
22
+ // Null-terminate the string. Non-standard C implementations (e.g.,
23
+ // Microsoft Visual C++) do not do this automatically.
24
+ buffer[1023 ] = ' \0 ' ;
22
25
va_end (ap); // look ma - I rememberd it this time
23
26
}
24
27
You can’t perform that action at this time.
0 commit comments