summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-09-03 10:25:26 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-09-03 10:25:26 +0200
commit7262bab8e520db7e326c219c24e996e20f91e906 (patch)
treef5ffac43239ade26d6a68fa5e6bc252530ab17be /python
parent5960003fc970480bd48b0cc1c0f8b5ed80af7dac (diff)
downloadpython-apt-7262bab8e520db7e326c219c24e996e20f91e906.tar.gz
fix tests
Diffstat (limited to 'python')
-rw-r--r--python/tag.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tag.cc b/python/tag.cc
index 8f483467..8fb0a78e 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -344,7 +344,7 @@ static PyObject *TagFileNext(PyObject *Self)
Obj.Section->Data = new char[Stop-Start+2];
snprintf(Obj.Section->Data, Stop-Start+2, "%s\n", Start);
// Rescan it
- if(Obj.Section->Object.Scan(Obj.Section->Data, Stop-Start) == false)
+ if(Obj.Section->Object.Scan(Obj.Section->Data, Stop-Start+2) == false)
return HandleErrors(NULL);
Py_INCREF(Obj.Section);