diff for duplicates of <20201015135341.GA16343@laptop> diff --git a/a/1.txt b/N1/1.txt index f5c80e7..e952d93 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -19,7 +19,7 @@ index fd9bca2..56029e3 100644 - if (len > sizeof(name)) + if (len >= sizeof(name)) return -1; - if (*nump = 0) + if (*nump == 0) strcpy(link, "xprt"); else { len = snprintf(link, sizeof(link), "xprt%d", *nump); diff --git a/a/content_digest b/N1/content_digest index a264f20..f614b6e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Fedor Tokarev <ftokarev@gmail.com>\0" "Subject\0[PATCH] net: sunrpc: Fix 'snprintf' return value check in 'do_xprt_debugfs'\0" - "Date\0Thu, 15 Oct 2020 13:59:08 +0000\0" + "Date\0Thu, 15 Oct 2020 16:59:08 +0300\0" "To\0bfields@fieldses.org" chuck.lever@oracle.com anna.schumaker@netapp.com @@ -35,7 +35,7 @@ "-\tif (len > sizeof(name))\n" "+\tif (len >= sizeof(name))\n" " \t\treturn -1;\n" - " \tif (*nump = 0)\n" + " \tif (*nump == 0)\n" " \t\tstrcpy(link, \"xprt\");\n" " \telse {\n" " \t\tlen = snprintf(link, sizeof(link), \"xprt%d\", *nump);\n" @@ -47,4 +47,4 @@ "-- \n" 2.7.4 -fb2be7d70dbd11db079916e3d728d0e83b3d848299c04f7ada60b421c869b275 +e23953e448e4dcbd352401361a69e83aa96f3b06fe3c40e7a62d634e6d24821b
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.