X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=ipc.c;h=9b38c1318541d24a5686c76eccfc330a3a204177;hp=183c76e9b4ad0b46ee2910207f12626fbb7087ca;hb=56f81b0dfa62bb5bf2c338733d9370a8b11bfc39;hpb=e64460eb7c840399e46fc54da3b348fee33e550d diff --git a/ipc.c b/ipc.c index 183c76e..9b38c13 100644 --- a/ipc.c +++ b/ipc.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + #include #include #include @@ -203,7 +205,7 @@ static int dss_realpath(const char *name, char **resolved_path) /* Careful here, end may be a pointer into extra_buf... */ memmove(&extra_buf[n], end, len + 1); - name = end = memcpy(extra_buf, buf, n); + end = memcpy(extra_buf, buf, n); if (buf[0] == '/') /* It's an absolute symlink */ dest = rpath + 1;