mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
panel: fixed crash when rename/copy (introduced by revert of mhl_strmove)
g_strconcat expects 0 as last argument, but mhl_strmove is not. When reverting this detail was overlooked. Returning 0 as last argument. Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
97bdf084f8
commit
c26e289b9f
@ -1805,7 +1805,7 @@ panel_operate (void *source_panel, FileOperation operation,
|
||||
else
|
||||
/* add trailing separator */
|
||||
if (*dest_dir && strcmp(&dest_dir[strlen(dest_dir)-1], PATH_SEP_STR)) {
|
||||
dest_dir_ = g_strconcat (dest_dir, PATH_SEP_STR);
|
||||
dest_dir_ = g_strconcat (dest_dir, PATH_SEP_STR, (char*)0);
|
||||
} else {
|
||||
dest_dir_ = g_strdup (dest_dir);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user