From 2f366cab48ef60d947949f15983dd660f1a14462 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 23 Sep 2016 20:20:27 +0200 Subject: Add an extra byte for null in case we ever get very long unicode names. --- Modules/unicodedata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 471d060..1f9ba78 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -1041,8 +1041,8 @@ _cmpname(PyObject *self, int code, const char* name, int namelen) { /* check if code corresponds to the given name */ int i; - char buffer[NAME_MAXLEN]; - if (!_getucname(self, code, buffer, sizeof(buffer), 1)) + char buffer[NAME_MAXLEN+1]; + if (!_getucname(self, code, buffer, NAME_MAXLEN, 1)) return 0; for (i = 0; i < namelen; i++) { if (Py_TOUPPER(Py_CHARMASK(name[i])) != buffer[i]) @@ -1195,10 +1195,10 @@ static PyObject * unicodedata_UCD_name_impl(PyObject *self, int chr, PyObject *default_value) /*[clinic end generated code: output=6bbb37a326407707 input=3e0367f534de56d9]*/ { - char name[NAME_MAXLEN]; + char name[NAME_MAXLEN+1]; Py_UCS4 c = (Py_UCS4)chr; - if (!_getucname(self, c, name, sizeof(name), 0)) { + if (!_getucname(self, c, name, NAME_MAXLEN, 0)) { if (default_value == NULL) { PyErr_SetString(PyExc_ValueError, "no such name"); return NULL; -- cgit v0.12 /Doxygen.git/tree/doc/doxygen.sty?id=8eeaae0b06fd320745f22efe176e0f19d6c8e2a6'>treecommitdiffstats
path: root/doc/doxygen.sty
Commit message (Collapse)AuthorAgeFilesLines
* Enabling possibility to have { and } in (latex) index itemsalbert-github2014-01-151-0/+2
| | | | | | | | | In the doxygen manual the index items for \{ and \} were missing due to the missing support for the usage of { and } in parts of the code. This patch fixes this problem by introducing 2 new latex commands. See also http://tex.stackexchange.com/questions/153291/index-unmatched-braces-in-latex Further improvements in the index are: - consistency in different places - correction of index for \:: - placing \~ on a more logical place (together with other special characters, ~ is in the ASCII table after a-z whilst other characters are before this range)
* Release-1.8.1.2Dimitri van Heesch2012-07-121-6/+8
|
* Release-1.7.6.1-20120122Dimitri van Heesch2012-01-221-2/+2
|
* Release-1.7.6.1-20120110Dimitri van Heesch2012-01-101-36/+195
|
* Release-1.7.3-20110123Dimitri van Heesch2011-01-231-3/+3
|
* Release-1.7.2-20101106Dimitri van Heesch2010-11-06