patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
diff --git a/src/undo.c b/src/undo.c
index c2fe819..7c1e597 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -849,7 +849,7 @@
{
// Use same directory as the ffname,
// "dir/name" -> "dir/.name.un~"
- undo_file_name = vim_strnsave(ffname, (int)(STRLEN(ffname) + 5));
+ undo_file_name = vim_strnsave(ffname, STRLEN(ffname) + 5);
if (undo_file_name == NULL)
break;
p = gettail(undo_file_name);