diff options
author | Thomas Preud'homme | 2013-02-10 20:19:24 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-02-10 20:19:24 +0100 |
commit | cf5a100b347f7be6bbddf8adced2733a010b7040 (patch) | |
tree | cbde2edb075f64bd8287177a6f87adcc0dfea455 | |
parent | f2bd3760b12ee5be83ca6ad84d2a1447b57597ab (diff) | |
download | libvformat-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.
-rw-r--r-- | src/vf_writer.c | 2 |
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 |