]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-5.4.12-truncate-output-buffer-after-use.patch
- release 48 (by relup.sh)
[packages/rpm.git] / rpm-5.4.12-truncate-output-buffer-after-use.patch
1 --- rpm-5.4.12/rpmio/rpmpython.c.rpmpythontrunc~        2013-08-09 03:05:39.809947086 +0200
2 +++ rpm-5.4.12/rpmio/rpmpython.c        2013-08-09 03:25:25.097372593 +0200
3 @@ -229,6 +229,8 @@ fprintf(stderr, "==> %s(%p,%s,%p)\n", __
4                 if (sys_stdout != NULL && PycStringIO_OutputCheck(sys_stdout)) {
5                     PyObject * o = (*PycStringIO->cgetvalue)(sys_stdout);
6                     *resultp = (PyString_Check(o) ? PyString_AsString(o) : "");
7 +                   PyObject_CallMethod(sys_stdout, "seek", "i",0);
8 +                   PyObject_CallMethod(sys_stdout, "truncate", NULL);
9                 } else
10                     *resultp = "";
11             }
This page took 0.022217 seconds and 3 git commands to generate.