commit | 5c1ba53f8ca219a22d964324abb76a055ad19feb | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Feb 17 18:05:20 2003 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Feb 17 18:05:20 2003 +0000 |
tree | e1778b086fc50fbfd794660240afd6962d3424b7 | |
parent | 946c19445c902d68ccd75452b97a8098e9b212e5 [diff] |
Use correct function name to PyArg_ParseTuple("is_package"). Fix off-by-1 error in normalize_line_endings(): when *p == '\0' the NUL was copied into q and q was auto-incremented, the loop was broken out of, then a newline was appended followed by a NUL. So the function, in effect, was strcpy() but added two extra chars which was caught by obmalloc in debug mode, since there was only room for 1 additional newline. Get test working under regrtest (added test_main).