From cf5a100b347f7be6bbddf8adced2733a010b7040 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 10 Feb 2013 20:19:24 +0100 Subject: Fix errors returned by -Werror=format-security Option -Werror=format-security of gcc returns several error with regards to szEndOfLine. Using "\r\n" instead of the ascii codes 0x0D, 0x0A and 0x00 avoid the error. --- src/vf_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vf_writer.c b/src/vf_writer.c index 29b83b5..3d5ad16 100644 --- a/src/vf_writer.c +++ b/src/vf_writer.c @@ -144,7 +144,7 @@ static bool_t write_vobject_to_file( Private Data *============================================================================*/ -static const char szEndOfLine[3] = { 0x0D, 0x0A, 0x00 }; +static const char szEndOfLine[] = "\r\n"; /*============================================================================* Public Function Implementations -- cgit v1.1-32-gdbae