Logo
Explore Help
Register Sign In
emo/xbps
1
0
Fork 0
You've already forked xbps
Code Issues Pull Requests Packages Projects Releases Wiki Activity
xbps/include/strlcpy.h

9 lines
115 B
C
Raw Normal View History

Added a configure script to emulate GNU autoconf and related changes. Changes included in this set: * Added strlcat() and strlcpy() from OpenBSD, always use them if the system does not have them built in. * Changed an array of PATH_MAX size allocated in the stack, to a dynamically allocated buffer from heap. This should reduce memory usage a bit. * Simplify code that implemented a homegrown realpath(3) implementation, simply use realpath(3). * If compiler supports -fstack-protector, build all code with -D_FORTIFY_SOURCE=2 and --param ssp-buffer-size=1 so that all buffers are protected.
2010-05-19 22:38:27 +02:00
#ifndef STRLCPY_H
#define STRLCPY_H
#include <sys/types.h>
size_t strlcpy(char *, const char *, size_t);
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 165ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Privacy Policy Terms Of Service