New submission from Daniel Molkentin <dan...@molkentin.de>:

from PC/getpathp.c:538


    if (pythonhome != NULL) {
        char *p;
        bufsz = 1;
        for (p = PYTHONPATH; *p; p++) {
            if (*p == DELIM)
                bufsz++; /* number of DELIM plus one */
        }
        bufsz *= strlen(pythonhome);
    }

The second last line should probably read

        bufsz += strlen(pythonhome);

----------
components: Windows
messages: 123067
nosy: danimo
priority: normal
severity: normal
status: open
title: Allocating too much memory for pathes
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10604>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to