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
8eb9c441
Kaydet (Commit)
8eb9c441
authored
Mar 26, 2012
tarafından
Catalin Iacob
Kaydeden (comit)
Stephan Bergmann
Nis 23, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: Clang adding 'int' to a string does not append to the string
üst
7de8936d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
unoapploader.c
odk/source/unoapploader/unx/unoapploader.c
+4
-2
No files found.
odk/source/unoapploader/unx/unoapploader.c
Dosyayı görüntüle @
8eb9c441
...
...
@@ -99,8 +99,10 @@ int main( int argc, char *argv[] )
size_t
pathlen
=
strlen
(
path
);
struct
stat
stat
;
int
ret
;
char
unoinfoSuffix
[]
=
"/unoinfo"
;
char
*
unoinfo
=
malloc
(
pathlen
+
RTL_CONSTASCII_LENGTH
(
"/unoinfo"
)
+
1
);
pathlen
+
RTL_CONSTASCII_LENGTH
(
unoinfoSuffix
)
+
1
);
/*TODO: overflow */
if
(
unoinfo
==
NULL
)
{
fprintf
(
stderr
,
"Error: out of memory!
\n
"
);
...
...
@@ -109,7 +111,7 @@ int main( int argc, char *argv[] )
strcpy
(
unoinfo
,
path
);
strcpy
(
unoinfo
+
pathlen
,
"/unoinfo"
+
(
pathlen
==
0
||
path
[
pathlen
-
1
]
!=
'/'
?
0
:
1
));
unoinfoSuffix
+
(
pathlen
==
0
||
path
[
pathlen
-
1
]
!=
'/'
?
0
:
1
));
ret
=
lstat
(
unoinfo
,
&
stat
);
free
(
unoinfo
);
...
...
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