summarylogtreecommitdiffstats
path: root/lsmmc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lsmmc.patch')
-rw-r--r--lsmmc.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/lsmmc.patch b/lsmmc.patch
new file mode 100644
index 000000000000..1ab06ce0b2a4
--- /dev/null
+++ b/lsmmc.patch
@@ -0,0 +1,13 @@
+diff --git a/lsmmc.c b/lsmmc.c
+index c4faa00..0f748cd 100644
+--- a/lsmmc.c
++++ b/lsmmc.c
+@@ -353,7 +353,7 @@ char *read_file(char *name)
+ line[strlen(line) - 1] = '\0';
+
+ while (isspace(line[0]))
+- strncpy(&line[0], &line[1], sizeof(line));
++ memmove(&line[0], &line[1], sizeof(line) - 1);
+
+ return strdup(line);
+ }