summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Thomas Preud'homme2013-02-10 20:19:24 +0100
committerGravatar Nikias Bassen2013-02-10 20:19:24 +0100
commitcf5a100b347f7be6bbddf8adced2733a010b7040 (patch)
treecbde2edb075f64bd8287177a6f87adcc0dfea455 /src
parentf2bd3760b12ee5be83ca6ad84d2a1447b57597ab (diff)
downloadlibvformat-cf5a100b347f7be6bbddf8adced2733a010b7040.tar.gz
libvformat-cf5a100b347f7be6bbddf8adced2733a010b7040.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/vf_writer.c2
1 files changed, 1 insertions, 1 deletions
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