Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
12310746
Kaydet (Commit)
12310746
authored
Şub 23, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
accumulate into an OStringBuffer
üst
2d152606
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
officeipcthread.cxx
desktop/source/app/officeipcthread.cxx
+4
-2
No files found.
desktop/source/app/officeipcthread.cxx
Dosyayı görüntüle @
12310746
...
...
@@ -669,22 +669,24 @@ void OfficeIPCThread::execute()
// down during wait
osl
::
ClearableMutexGuard
aGuard
(
GetMutex
()
);
ByteString
aArguments
;
// test byte by byte
const
int
nBufSz
=
2048
;
char
pBuf
[
nBufSz
];
int
nBytes
=
0
;
int
nResult
=
0
;
rtl
::
OStringBuffer
aBuf
;
// read into pBuf until '\0' is read or read-error
while
((
nResult
=
maStreamPipe
.
recv
(
pBuf
+
nBytes
,
nBufSz
-
nBytes
))
>
0
)
{
nBytes
+=
nResult
;
if
(
pBuf
[
nBytes
-
1
]
==
'\0'
)
{
a
Arguments
+=
pBuf
;
a
Buf
.
append
(
pBuf
)
;
break
;
}
}
// don't close pipe ...
ByteString
aArguments
=
aBuf
.
makeStringAndClear
();
// Is this a lookup message from another application? if so, ignore
if
(
aArguments
.
Len
()
==
0
)
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment