Browse Source

sofd: skip strcpy in case of same source and destination

pull/162/head
JP Cimalando Filipe Coelho <falktx@falktx.com> 4 years ago
parent
commit
1ae79e9a53
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      dgl/src/sofd/libsofd.c

+ 2
- 1
dgl/src/sofd/libsofd.c View File

@@ -1257,7 +1257,8 @@ static int fib_opendir (Display *dpy, const char* path, const char *sel) {
} else {
int i;
struct dirent *de;
strcpy (_cur_path, path);
if (path != _cur_path)
strcpy (_cur_path, path);

if (_cur_path[strlen (_cur_path) -1] != '/')
strcat (_cur_path, "/");


Loading…
Cancel
Save