diff --git a/source/AdvSecurityDml/Makefile.am b/source/AdvSecurityDml/Makefile.am index 7ec5517..5bf670a 100644 --- a/source/AdvSecurityDml/Makefile.am +++ b/source/AdvSecurityDml/Makefile.am @@ -17,9 +17,10 @@ ########################################################################## AM_CFLAGS = -D_ANSC_LINUX AM_CFLAGS += -D_ANSC_USER +AM_CFLAGS += -Wno-format AM_LDFLAGS = -lccsp_common -lsysevent -lwebconfig_framework -lmsgpackc -ltrower-base64 -AM_CPPFLAGS = -Wall -Werror +AM_CPPFLAGS = -Wall -Wno-format ACLOCAL_AMFLAGS = -I m4 hardware_platform = i686-linux-gnu diff --git a/source/AdvSecurityDml/cosa_adv_security_internal.c b/source/AdvSecurityDml/cosa_adv_security_internal.c index 37292ef..815bf9a 100644 --- a/source/AdvSecurityDml/cosa_adv_security_internal.c +++ b/source/AdvSecurityDml/cosa_adv_security_internal.c @@ -294,7 +294,7 @@ static BOOL advsec_write_to_file(char *fpath, char *str) if ((file = fopen(fpath, "w"))) { - fprintf(file,"%s",str); + fprintf(file,"%s%s",str); fclose(file); return 1; }