... | ... |
@@ -1,4 +1,4 @@ |
1 |
-# Makefile.in generated by automake 1.14.1 from Makefile.am. |
|
1 |
+# Makefile.in generated by automake 1.14 from Makefile.am. |
|
2 | 2 |
# @configure_input@ |
3 | 3 |
|
4 | 4 |
# Copyright (C) 1994-2013 Free Software Foundation, Inc. |
... | ... |
@@ -955,10 +955,9 @@ distcheck: dist |
955 | 955 |
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
956 | 956 |
&& am__cwd=`pwd` \ |
957 | 957 |
&& $(am__cd) $(distdir)/_build \ |
958 |
- && ../configure \ |
|
958 |
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
|
959 | 959 |
$(AM_DISTCHECK_CONFIGURE_FLAGS) \ |
960 | 960 |
$(DISTCHECK_CONFIGURE_FLAGS) \ |
961 |
- --srcdir=.. --prefix="$$dc_install_base" \ |
|
962 | 961 |
&& $(MAKE) $(AM_MAKEFLAGS) \ |
963 | 962 |
&& $(MAKE) $(AM_MAKEFLAGS) dvi \ |
964 | 963 |
&& $(MAKE) $(AM_MAKEFLAGS) check \ |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-# generated automatically by aclocal 1.14.1 -*- Autoconf -*- |
|
1 |
+# generated automatically by aclocal 1.14 -*- Autoconf -*- |
|
2 | 2 |
|
3 | 3 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
4 | 4 |
|
... | ... |
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], |
35 | 35 |
[am__api_version='1.14' |
36 | 36 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
37 | 37 |
dnl require some minimum version. Point them to the right macro. |
38 |
-m4_if([$1], [1.14.1], [], |
|
38 |
+m4_if([$1], [1.14], [], |
|
39 | 39 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
40 | 40 |
]) |
41 | 41 |
|
... | ... |
@@ -51,7 +51,7 @@ m4_define([_AM_AUTOCONF_VERSION], []) |
51 | 51 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
52 | 52 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
53 | 53 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
54 |
-[AM_AUTOMAKE_VERSION([1.14.1])dnl |
|
54 |
+[AM_AUTOMAKE_VERSION([1.14])dnl |
|
55 | 55 |
m4_ifndef([AC_AUTOCONF_VERSION], |
56 | 56 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
57 | 57 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
... | ... |
@@ -91,7 +91,8 @@ libclamav_internal_utils_la_SOURCES=str.c\ |
91 | 91 |
regex/cname.h \ |
92 | 92 |
regex/regex.h \ |
93 | 93 |
regex/regex2.h \ |
94 |
- regex/utils.h |
|
94 |
+ regex/utils.h \ |
|
95 |
+ strlcat.c |
|
95 | 96 |
|
96 | 97 |
libclamav_internal_utils_la_LDFLAGS=-static @SSL_LDFLAGS@ @JSON_LDFLAGS@ |
97 | 98 |
libclamav_internal_utils_la_CFLAGS=$(AM_CFLAGS) -fPIC -DPIC @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ |
... | ... |
@@ -117,7 +118,8 @@ libclamav_internal_utils_nothreads_la_SOURCES=str.c\ |
117 | 117 |
regex/cname.h \ |
118 | 118 |
regex/regex.h \ |
119 | 119 |
regex/regex2.h \ |
120 |
- regex/utils.h |
|
120 |
+ regex/utils.h \ |
|
121 |
+ strlcat.c |
|
121 | 122 |
|
122 | 123 |
libclamav_internal_utils_nothreads_la_LDFLAGS=-static @SSL_LDFLAGS@ @JSON_LDFLAGS@ |
123 | 124 |
libclamav_internal_utils_nothreads_la_CFLAGS=$(AM_CFLAGS) -DCL_NOTHREADS @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-# Makefile.in generated by automake 1.14.1 from Makefile.am. |
|
1 |
+# Makefile.in generated by automake 1.14 from Makefile.am. |
|
2 | 2 |
# @configure_input@ |
3 | 3 |
|
4 | 4 |
# Copyright (C) 1994-2013 Free Software Foundation, Inc. |
... | ... |
@@ -353,7 +353,8 @@ am_libclamav_internal_utils_la_OBJECTS = \ |
353 | 353 |
libclamav_internal_utils_la-regcomp.lo \ |
354 | 354 |
libclamav_internal_utils_la-regerror.lo \ |
355 | 355 |
libclamav_internal_utils_la-regexec.lo \ |
356 |
- libclamav_internal_utils_la-regfree.lo |
|
356 |
+ libclamav_internal_utils_la-regfree.lo \ |
|
357 |
+ libclamav_internal_utils_la-strlcat.lo |
|
357 | 358 |
libclamav_internal_utils_la_OBJECTS = \ |
358 | 359 |
$(am_libclamav_internal_utils_la_OBJECTS) |
359 | 360 |
libclamav_internal_utils_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
... | ... |
@@ -372,7 +373,8 @@ am_libclamav_internal_utils_nothreads_la_OBJECTS = \ |
372 | 372 |
libclamav_internal_utils_nothreads_la-regcomp.lo \ |
373 | 373 |
libclamav_internal_utils_nothreads_la-regerror.lo \ |
374 | 374 |
libclamav_internal_utils_nothreads_la-regexec.lo \ |
375 |
- libclamav_internal_utils_nothreads_la-regfree.lo |
|
375 |
+ libclamav_internal_utils_nothreads_la-regfree.lo \ |
|
376 |
+ libclamav_internal_utils_nothreads_la-strlcat.lo |
|
376 | 377 |
libclamav_internal_utils_nothreads_la_OBJECTS = \ |
377 | 378 |
$(am_libclamav_internal_utils_nothreads_la_OBJECTS) |
378 | 379 |
libclamav_internal_utils_nothreads_la_LINK = $(LIBTOOL) $(AM_V_lt) \ |
... | ... |
@@ -792,7 +794,8 @@ libclamav_internal_utils_la_SOURCES = str.c\ |
792 | 792 |
regex/cname.h \ |
793 | 793 |
regex/regex.h \ |
794 | 794 |
regex/regex2.h \ |
795 |
- regex/utils.h |
|
795 |
+ regex/utils.h \ |
|
796 |
+ strlcat.c |
|
796 | 797 |
|
797 | 798 |
libclamav_internal_utils_la_LDFLAGS = -static @SSL_LDFLAGS@ @JSON_LDFLAGS@ |
798 | 799 |
libclamav_internal_utils_la_CFLAGS = $(AM_CFLAGS) -fPIC -DPIC @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ |
... | ... |
@@ -817,7 +820,8 @@ libclamav_internal_utils_nothreads_la_SOURCES = str.c\ |
817 | 817 |
regex/cname.h \ |
818 | 818 |
regex/regex.h \ |
819 | 819 |
regex/regex2.h \ |
820 |
- regex/utils.h |
|
820 |
+ regex/utils.h \ |
|
821 |
+ strlcat.c |
|
821 | 822 |
|
822 | 823 |
libclamav_internal_utils_nothreads_la_LDFLAGS = -static @SSL_LDFLAGS@ @JSON_LDFLAGS@ |
823 | 824 |
libclamav_internal_utils_nothreads_la_CFLAGS = $(AM_CFLAGS) -DCL_NOTHREADS @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ |
... | ... |
@@ -1075,6 +1079,7 @@ distclean-compile: |
1075 | 1075 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_la-regexec.Plo@am__quote@ |
1076 | 1076 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_la-regfree.Plo@am__quote@ |
1077 | 1077 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_la-str.Plo@am__quote@ |
1078 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_la-strlcat.Plo@am__quote@ |
|
1078 | 1079 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_la-strlcpy.Plo@am__quote@ |
1079 | 1080 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_nothreads_la-conv.Plo@am__quote@ |
1080 | 1081 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_nothreads_la-crypto.Plo@am__quote@ |
... | ... |
@@ -1086,6 +1091,7 @@ distclean-compile: |
1086 | 1086 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_nothreads_la-regexec.Plo@am__quote@ |
1087 | 1087 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_nothreads_la-regfree.Plo@am__quote@ |
1088 | 1088 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_nothreads_la-str.Plo@am__quote@ |
1089 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_nothreads_la-strlcat.Plo@am__quote@ |
|
1089 | 1090 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_internal_utils_nothreads_la-strlcpy.Plo@am__quote@ |
1090 | 1091 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_la-7zAlloc.Plo@am__quote@ |
1091 | 1092 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclamav_la-7zBuf.Plo@am__quote@ |
... | ... |
@@ -2948,6 +2954,13 @@ libclamav_internal_utils_la-regfree.lo: regex/regfree.c |
2948 | 2948 |
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
2949 | 2949 |
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_internal_utils_la_CFLAGS) $(CFLAGS) -c -o libclamav_internal_utils_la-regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c |
2950 | 2950 |
|
2951 |
+libclamav_internal_utils_la-strlcat.lo: strlcat.c |
|
2952 |
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_internal_utils_la_CFLAGS) $(CFLAGS) -MT libclamav_internal_utils_la-strlcat.lo -MD -MP -MF $(DEPDIR)/libclamav_internal_utils_la-strlcat.Tpo -c -o libclamav_internal_utils_la-strlcat.lo `test -f 'strlcat.c' || echo '$(srcdir)/'`strlcat.c |
|
2953 |
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libclamav_internal_utils_la-strlcat.Tpo $(DEPDIR)/libclamav_internal_utils_la-strlcat.Plo |
|
2954 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strlcat.c' object='libclamav_internal_utils_la-strlcat.lo' libtool=yes @AMDEPBACKSLASH@ |
|
2955 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|
2956 |
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_internal_utils_la_CFLAGS) $(CFLAGS) -c -o libclamav_internal_utils_la-strlcat.lo `test -f 'strlcat.c' || echo '$(srcdir)/'`strlcat.c |
|
2957 |
+ |
|
2951 | 2958 |
libclamav_internal_utils_nothreads_la-str.lo: str.c |
2952 | 2959 |
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_internal_utils_nothreads_la_CFLAGS) $(CFLAGS) -MT libclamav_internal_utils_nothreads_la-str.lo -MD -MP -MF $(DEPDIR)/libclamav_internal_utils_nothreads_la-str.Tpo -c -o libclamav_internal_utils_nothreads_la-str.lo `test -f 'str.c' || echo '$(srcdir)/'`str.c |
2953 | 2960 |
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libclamav_internal_utils_nothreads_la-str.Tpo $(DEPDIR)/libclamav_internal_utils_nothreads_la-str.Plo |
... | ... |
@@ -3025,6 +3038,13 @@ libclamav_internal_utils_nothreads_la-regfree.lo: regex/regfree.c |
3025 | 3025 |
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
3026 | 3026 |
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_internal_utils_nothreads_la_CFLAGS) $(CFLAGS) -c -o libclamav_internal_utils_nothreads_la-regfree.lo `test -f 'regex/regfree.c' || echo '$(srcdir)/'`regex/regfree.c |
3027 | 3027 |
|
3028 |
+libclamav_internal_utils_nothreads_la-strlcat.lo: strlcat.c |
|
3029 |
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_internal_utils_nothreads_la_CFLAGS) $(CFLAGS) -MT libclamav_internal_utils_nothreads_la-strlcat.lo -MD -MP -MF $(DEPDIR)/libclamav_internal_utils_nothreads_la-strlcat.Tpo -c -o libclamav_internal_utils_nothreads_la-strlcat.lo `test -f 'strlcat.c' || echo '$(srcdir)/'`strlcat.c |
|
3030 |
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libclamav_internal_utils_nothreads_la-strlcat.Tpo $(DEPDIR)/libclamav_internal_utils_nothreads_la-strlcat.Plo |
|
3031 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strlcat.c' object='libclamav_internal_utils_nothreads_la-strlcat.lo' libtool=yes @AMDEPBACKSLASH@ |
|
3032 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
|
3033 |
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_internal_utils_nothreads_la_CFLAGS) $(CFLAGS) -c -o libclamav_internal_utils_nothreads_la-strlcat.lo `test -f 'strlcat.c' || echo '$(srcdir)/'`strlcat.c |
|
3034 |
+ |
|
3028 | 3035 |
libclamav_nocxx_la-bytecode_nojit.lo: bytecode_nojit.c |
3029 | 3036 |
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libclamav_nocxx_la_CFLAGS) $(CFLAGS) -MT libclamav_nocxx_la-bytecode_nojit.lo -MD -MP -MF $(DEPDIR)/libclamav_nocxx_la-bytecode_nojit.Tpo -c -o libclamav_nocxx_la-bytecode_nojit.lo `test -f 'bytecode_nojit.c' || echo '$(srcdir)/'`bytecode_nojit.c |
3030 | 3037 |
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libclamav_nocxx_la-bytecode_nojit.Tpo $(DEPDIR)/libclamav_nocxx_la-bytecode_nojit.Plo |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-# Makefile.in generated by automake 1.14.1 from Makefile.am. |
|
1 |
+# Makefile.in generated by automake 1.14 from Makefile.am. |
|
2 | 2 |
# @configure_input@ |
3 | 3 |
|
4 | 4 |
# Copyright (C) 1994-2013 Free Software Foundation, Inc. |
... | ... |
@@ -5653,10 +5653,9 @@ distcheck: dist |
5653 | 5653 |
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
5654 | 5654 |
&& am__cwd=`pwd` \ |
5655 | 5655 |
&& $(am__cd) $(distdir)/_build \ |
5656 |
- && ../configure \ |
|
5656 |
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
|
5657 | 5657 |
$(AM_DISTCHECK_CONFIGURE_FLAGS) \ |
5658 | 5658 |
$(DISTCHECK_CONFIGURE_FLAGS) \ |
5659 |
- --srcdir=.. --prefix="$$dc_install_base" \ |
|
5660 | 5659 |
&& $(MAKE) $(AM_MAKEFLAGS) \ |
5661 | 5660 |
&& $(MAKE) $(AM_MAKEFLAGS) dvi \ |
5662 | 5661 |
&& $(MAKE) $(AM_MAKEFLAGS) check \ |
... | ... |
@@ -5746,8 +5745,8 @@ maintainer-clean-generic: |
5746 | 5746 |
@echo "This command is intended for maintainers to use" |
5747 | 5747 |
@echo "it deletes files that may require special tools to rebuild." |
5748 | 5748 |
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) |
5749 |
-@BUILD_EXTERNAL_LLVM_TRUE@clean-local: |
|
5750 | 5749 |
@BUILD_EXTERNAL_LLVM_TRUE@distclean-local: |
5750 |
+@BUILD_EXTERNAL_LLVM_TRUE@clean-local: |
|
5751 | 5751 |
clean: clean-am |
5752 | 5752 |
|
5753 | 5753 |
clean-am: clean-generic clean-libtool clean-local \ |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-# generated automatically by aclocal 1.14.1 -*- Autoconf -*- |
|
1 |
+# generated automatically by aclocal 1.14 -*- Autoconf -*- |
|
2 | 2 |
|
3 | 3 |
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
4 | 4 |
|
... | ... |
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], |
35 | 35 |
[am__api_version='1.14' |
36 | 36 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
37 | 37 |
dnl require some minimum version. Point them to the right macro. |
38 |
-m4_if([$1], [1.14.1], [], |
|
38 |
+m4_if([$1], [1.14], [], |
|
39 | 39 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
40 | 40 |
]) |
41 | 41 |
|
... | ... |
@@ -51,7 +51,7 @@ m4_define([_AM_AUTOCONF_VERSION], []) |
51 | 51 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
52 | 52 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
53 | 53 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
54 |
-[AM_AUTOMAKE_VERSION([1.14.1])dnl |
|
54 |
+[AM_AUTOMAKE_VERSION([1.14])dnl |
|
55 | 55 |
m4_ifndef([AC_AUTOCONF_VERSION], |
56 | 56 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
57 | 57 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
... | ... |
@@ -16,6 +16,10 @@ |
16 | 16 |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | 17 |
*/ |
18 | 18 |
|
19 |
+#if HAVE_CONFIG_H |
|
20 |
+#include "clamav-config.h" |
|
21 |
+#endif |
|
22 |
+ |
|
19 | 23 |
#include <sys/types.h> |
20 | 24 |
#include <string.h> |
21 | 25 |
|
... | ... |
@@ -28,6 +32,9 @@ |
28 | 28 |
size_t |
29 | 29 |
cli_strlcpy(char *dst, const char *src, size_t siz) |
30 | 30 |
{ |
31 |
+#if HAVE_STRLCPY |
|
32 |
+ return strlcpy(dst, src, siz); |
|
33 |
+#else |
|
31 | 34 |
char *d = dst; |
32 | 35 |
const char *s = src; |
33 | 36 |
size_t n = siz; |
... | ... |
@@ -49,4 +56,5 @@ cli_strlcpy(char *dst, const char *src, size_t siz) |
49 | 49 |
} |
50 | 50 |
|
51 | 51 |
return(s - src - 1); /* count does not include NUL */ |
52 |
+#endif |
|
52 | 53 |
} |
62 | 63 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,67 @@ |
0 |
+/* $OpenBSD: strlcat.c,v 1.13 2005/08/08 08:05:37 espie Exp $ */ |
|
1 |
+ |
|
2 |
+/* |
|
3 |
+ * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> |
|
4 |
+ * |
|
5 |
+ * Permission to use, copy, modify, and distribute this software for any |
|
6 |
+ * purpose with or without fee is hereby granted, provided that the above |
|
7 |
+ * copyright notice and this permission notice appear in all copies. |
|
8 |
+ * |
|
9 |
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
10 |
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
|
11 |
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
|
12 |
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
|
13 |
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
|
14 |
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
15 |
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
16 |
+ */ |
|
17 |
+ |
|
18 |
+/* |
|
19 |
+ * Taken from HardenedBSD's strlcat.c, which was taken from OpenBSD. |
|
20 |
+ */ |
|
21 |
+ |
|
22 |
+#if HAVE_CONFIG_H |
|
23 |
+#include "clamav-config.h" |
|
24 |
+#endif |
|
25 |
+ |
|
26 |
+#include <sys/types.h> |
|
27 |
+#include <string.h> |
|
28 |
+ |
|
29 |
+/* |
|
30 |
+ * Appends src to string dst of size siz (unlike strncat, siz is the |
|
31 |
+ * full size of dst, not space left). At most siz-1 characters |
|
32 |
+ * will be copied. Always NUL terminates (unless siz <= strlen(dst)). |
|
33 |
+ * Returns strlen(src) + MIN(siz, strlen(initial dst)). |
|
34 |
+ * If retval >= siz, truncation occurred. |
|
35 |
+ */ |
|
36 |
+size_t |
|
37 |
+cli_strlcat(char *dst, const char *src, size_t siz) |
|
38 |
+{ |
|
39 |
+#if HAVE_STRLCAT |
|
40 |
+ return strlcat(dst, src, siz); |
|
41 |
+#else |
|
42 |
+ char *d = dst; |
|
43 |
+ const char *s = src; |
|
44 |
+ size_t n = siz; |
|
45 |
+ size_t dlen; |
|
46 |
+ |
|
47 |
+ /* Find the end of dst and adjust bytes left but don't go past end */ |
|
48 |
+ while (n-- != 0 && *d != '\0') |
|
49 |
+ d++; |
|
50 |
+ dlen = d - dst; |
|
51 |
+ n = siz - dlen; |
|
52 |
+ |
|
53 |
+ if (n == 0) |
|
54 |
+ return(dlen + strlen(s)); |
|
55 |
+ while (*s != '\0') { |
|
56 |
+ if (n != 1) { |
|
57 |
+ *d++ = *s; |
|
58 |
+ n--; |
|
59 |
+ } |
|
60 |
+ s++; |
|
61 |
+ } |
|
62 |
+ *d = '\0'; |
|
63 |
+ |
|
64 |
+ return(dlen + (s - src)); /* count does not include NUL */ |
|
65 |
+#endif |
|
66 |
+} |