Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zaloguj się
rinri
/
slstatus
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Oczekujące zmiany
0
Wydania
0
Wiki
Aktywność
Przeglądaj źródła
extern/concat.h: don't segfault if count == 0
master
raiz
7 lat temu
rodzic
e9f738b8b6
commit
ba0f0998d9
1 zmienionych plików
z
3 dodań
i
0 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+3
-0
extern/concat.h
+ 3
- 0
extern/concat.h
Wyświetl plik
@@ -11,6 +11,9 @@ ccat(const unsigned short int count, ...)
unsigned short int i;
concat[0] = '\0';
if (count == 0)
return;
va_start(ap, count);
for(i = 0; i < count; i++)
strlcat(concat, va_arg(ap, char *), sizeof(concat));
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz