sockets: don't deadlock when connecting to own pipe address

This commit is contained in:
Björn Linse
2017-05-06 09:31:36 +02:00
parent 6a75938758
commit 5a151555c8
4 changed files with 92 additions and 16 deletions

View File

@@ -1715,7 +1715,7 @@ int vim_FullName(const char *fname, char *buf, size_t len, bool force)
///
/// @param fname is the filename to expand
/// @return [allocated] Full path (NULL for failure).
char *fix_fname(char *fname)
char *fix_fname(const char *fname)
{
#ifdef UNIX
return FullName_save(fname, true);