зеркало из https://github.com/github/putty.git
Arnaud Desitter points out a silly mistake in retrieve_cutbuffer()
(don't test for `int *nbytes' being <= 0, test for the integer it points to being <= 0!). [originally from svn r4254]
This commit is contained in:
Родитель
deeece201b
Коммит
be5133f376
|
@ -1371,7 +1371,7 @@ char * retrieve_cutbuffer(int * nbytes)
|
|||
{
|
||||
char * ptr;
|
||||
ptr = XFetchBytes(GDK_DISPLAY(), nbytes);
|
||||
if (nbytes <= 0 && ptr != 0) {
|
||||
if (*nbytes <= 0 && ptr != 0) {
|
||||
XFree(ptr);
|
||||
ptr = 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче