]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed format string issue in read_inline_file,
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 18 Jul 2008 07:25:47 +0000 (07:25 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 18 Jul 2008 07:25:47 +0000 (07:25 +0000)
used in the config file parser.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3078 e7ae566f-a301-0410-adde-c780ea21d3b5

options.c

index 287084edb375dfa6eecc651de16c0bdacfabdf7b..197a0581618762ba9780eba3c19d891a0053df4c 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2898,7 +2898,7 @@ read_inline_file (struct in_src *is, const char *close_tag, struct gc_arena *gc)
     {
       if (!strncmp (line, close_tag, strlen (close_tag)))
        break;
-      buf_printf (&buf, line);
+      buf_printf (&buf, "%s", line);
     }
   ret = string_alloc (BSTR (&buf), gc);
   buf_clear (&buf);