Show More
@@ -7,6 +7,7 b'' | |||||
7 | the GNU General Public License, incorporated herein by reference. |
|
7 | the GNU General Public License, incorporated herein by reference. | |
8 | */ |
|
8 | */ | |
9 |
|
9 | |||
|
10 | #define PY_SSIZE_T_CLEAN | |||
10 | #include <Python.h> |
|
11 | #include <Python.h> | |
11 | #include <ctype.h> |
|
12 | #include <ctype.h> | |
12 | #include <stddef.h> |
|
13 | #include <stddef.h> | |
@@ -164,8 +165,9 b' static PyObject *parse_dirstate(PyObject' | |||||
164 | PyObject *fname = NULL, *cname = NULL, *entry = NULL; |
|
165 | PyObject *fname = NULL, *cname = NULL, *entry = NULL; | |
165 | char state, *cur, *str, *cpos; |
|
166 | char state, *cur, *str, *cpos; | |
166 | int mode, size, mtime; |
|
167 | int mode, size, mtime; | |
167 |
unsigned int flen, |
|
168 | unsigned int flen, pos = 40; | |
168 | int readlen; |
|
169 | Py_ssize_t len = 40; | |
|
170 | Py_ssize_t readlen; | |||
169 |
|
171 | |||
170 | if (!PyArg_ParseTuple( |
|
172 | if (!PyArg_ParseTuple( | |
171 | args, PY23("O!O!s#:parse_dirstate", "O!O!y#:parse_dirstate"), |
|
173 | args, PY23("O!O!s#:parse_dirstate", "O!O!y#:parse_dirstate"), | |
@@ -585,8 +587,7 b' bail:' | |||||
585 | static PyObject *fm1readmarkers(PyObject *self, PyObject *args) |
|
587 | static PyObject *fm1readmarkers(PyObject *self, PyObject *args) | |
586 | { |
|
588 | { | |
587 | const char *data, *dataend; |
|
589 | const char *data, *dataend; | |
588 | int datalen; |
|
590 | Py_ssize_t datalen, offset, stop; | |
589 | Py_ssize_t offset, stop; |
|
|||
590 | PyObject *markers = NULL; |
|
591 | PyObject *markers = NULL; | |
591 |
|
592 | |||
592 | if (!PyArg_ParseTuple(args, PY23("s#nn", "y#nn"), &data, &datalen, |
|
593 | if (!PyArg_ParseTuple(args, PY23("s#nn", "y#nn"), &data, &datalen, |
General Comments 0
You need to be logged in to leave comments.
Login now