From c4fab650136590fb6d6b4c612aa429d1d398caad Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sat, 7 Feb 2009 17:27:05 -0600 Subject: iscsi tools: convert from strncat to strlcat We messed up strncat in so many different ways that strlat could fix. This patch converts the userspace uses of strncat to strlcat. --- include/sysdeps.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/sysdeps.h (limited to 'include') diff --git a/include/sysdeps.h b/include/sysdeps.h new file mode 100644 index 0000000..2f18e3b --- /dev/null +++ b/include/sysdeps.h @@ -0,0 +1,27 @@ +/* + * wrapping of libc features and kernel interfaces + * + * Copyright (C) 2005-2006 Kay Sievers + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef _SYSDEPS_H_ +#define _SYSDEPS_H_ + +extern size_t strlcpy(char *dst, const char *src, size_t size); +extern size_t strlcat(char *dst, const char *src, size_t size); + +#endif -- cgit v1.2.1