diff --git a/source/AdvSecurityDml/Makefile.am b/source/AdvSecurityDml/Makefile.am index 3fc1176..d7cce5c 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 f722552..43f4f88 100644 --- a/source/AdvSecurityDml/cosa_adv_security_internal.c +++ b/source/AdvSecurityDml/cosa_adv_security_internal.c @@ -291,7 +291,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; }