Odpovídáte na názor k článku Curl zakazuje ve svém kódu funkci strcpy(), použije vlastní bezpečnější náhradu. Názory mohou přidávat pouze registrovaní uživatelé. Nově přidané názory se na webu objeví až po schválení redakcí.
5. 1. 2026 22:57
The strncpy() function is similar, except that at most n bytes of src are copied. Warning: If there is no null byte among the first n bytes of src, the string placed in dest will not be null-terminated. To je z bláta do louže :-D
The strncpy() function is similar, except that at most n bytes of src are copied. Warning: If there is no null byte among the first n bytes of src, the string placed in dest will not be null-terminated.