Mercurial > vim
comparison src/undo.c @ 20830:9064044fd4f6 v8.2.0967
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 12 22:59:11 2020 +0200
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jun 2020 23:00:04 +0200 |
parents | 0b55c9a14ea1 |
children | 808edde1e97d |
comparison
equal
deleted
inserted
replaced
20829:3d0d6410aecd | 20830:9064044fd4f6 |
---|---|
847 dir_len = copy_option_part(&dirp, dir_name, IOSIZE, ","); | 847 dir_len = copy_option_part(&dirp, dir_name, IOSIZE, ","); |
848 if (dir_len == 1 && dir_name[0] == '.') | 848 if (dir_len == 1 && dir_name[0] == '.') |
849 { | 849 { |
850 // Use same directory as the ffname, | 850 // Use same directory as the ffname, |
851 // "dir/name" -> "dir/.name.un~" | 851 // "dir/name" -> "dir/.name.un~" |
852 undo_file_name = vim_strnsave(ffname, (int)(STRLEN(ffname) + 5)); | 852 undo_file_name = vim_strnsave(ffname, STRLEN(ffname) + 5); |
853 if (undo_file_name == NULL) | 853 if (undo_file_name == NULL) |
854 break; | 854 break; |
855 p = gettail(undo_file_name); | 855 p = gettail(undo_file_name); |
856 #ifdef VMS | 856 #ifdef VMS |
857 // VMS can not handle more than one dot in the filenames | 857 // VMS can not handle more than one dot in the filenames |