diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /qa/workunits/suites/ffsb.patch | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'qa/workunits/suites/ffsb.patch')
-rw-r--r-- | qa/workunits/suites/ffsb.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qa/workunits/suites/ffsb.patch b/qa/workunits/suites/ffsb.patch new file mode 100644 index 000000000..a51217595 --- /dev/null +++ b/qa/workunits/suites/ffsb.patch @@ -0,0 +1,12 @@ +diff -urp 1/parser.c 2/parser.c +--- 1/parser.c 2008-10-28 04:17:05.000000000 +0800 ++++ 2/parser.c 2018-06-26 20:25:59.000000000 +0800 +@@ -203,7 +203,7 @@ static char *get_optstr(char *buf, char + len = strnlen(string, BUFSIZE); + sprintf(search_str, "%s=%%%ds\\n", string, BUFSIZE - len-1); + if (1 == sscanf(line, search_str, &temp)) { +- len = strnlen(temp, 4096); ++ len = strnlen(temp, 4095) + 1; + ret_buf = malloc(len); + strncpy(ret_buf, temp, len); + return ret_buf; |