X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=camwire-bounds.patch;h=59459ba598d25394a60dd51d863eceb48cd79a4e;hb=42338f774ddd22ed2c9bc2eb6d4755250c1a0608;hp=3339214b64b2da753ae5fe32f3976483fbf0e3bd;hpb=ed2eb3879e6a014793014281d82db61698170876;p=packages%2Fcamwire.git diff --git a/camwire-bounds.patch b/camwire-bounds.patch index 3339214..59459ba 100644 --- a/camwire-bounds.patch +++ b/camwire-bounds.patch @@ -37,3 +37,13 @@ } else { +--- camwire2-2.0.0-Source/camwire/camwire.c.orig 2015-05-21 23:38:31.000000000 +0200 ++++ camwire2-2.0.0-Source/camwire/camwire.c 2023-07-09 12:05:54.227004109 +0200 +@@ -3355,6 +3355,7 @@ static FILE * open_named_conf_file(const + } + } + strncat(conffilename, filename, CAMWIRE_ID_MAX_CHARS); ++ conffilename[CAMWIRE_ID_MAX_CHARS] = '\n'; + strncat(conffilename, CONFFILE_EXTENSION, + CONFFILE_EXTENSION_MAX_CHARS); + return fopen(conffilename, "r");