Blame ecryptfs-utils-87-memcpyfix.patch

bbbcbd
diff -up ecryptfs-utils-87/src/utils/mount.ecryptfs.c.memcpyfix ecryptfs-utils-87/src/utils/mount.ecryptfs.c
bbbcbd
--- ecryptfs-utils-87/src/utils/mount.ecryptfs.c.memcpyfix	2011-07-11 15:04:00.742821125 +0200
bbbcbd
+++ ecryptfs-utils-87/src/utils/mount.ecryptfs.c	2011-07-11 15:04:15.590926517 +0200
bbbcbd
@@ -189,7 +189,7 @@ static int ecryptfs_generate_mount_flags
bbbcbd
 			*end = '\0';
bbbcbd
 			break;
bbbcbd
 		}
bbbcbd
-		memcpy(opt, next_opt, end - next_opt);
bbbcbd
+		memmove(opt, next_opt, end - next_opt);
bbbcbd
 		end = end - (next_opt - opt);
bbbcbd
 		*end = '\0';
bbbcbd
 	}
bbbcbd
@@ -416,7 +416,7 @@ static int opts_str_contains_option(char
bbbcbd
 			*end = '\0';
bbbcbd
 			break;
bbbcbd
 		}
bbbcbd
-		memcpy(opt, next_opt, end - next_opt);
bbbcbd
+		memmove(opt, next_opt, end - next_opt);
bbbcbd
 		end = end - (next_opt - opt);
bbbcbd
 		*end = '\0';
bbbcbd
 	}