Przeglądaj źródła

Fix strlcpy() size argument

It should be the size of the destination buffer, not the source.

In this case, both src and dest have the same size.
master
sin 9 lat temu
rodzic
commit
81ec260516
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      noice.c

+ 1
- 1
noice.c Wyświetl plik

@@ -598,7 +598,7 @@ nochange:
goto nochange;
}
/* Save history */
strlcpy(oldpath, path, sizeof(path));
strlcpy(oldpath, path, sizeof(oldpath));
strlcpy(path, dir, sizeof(path));
/* Reset filter */
strlcpy(fltr, ifilter, sizeof(fltr));


Ładowanie…
Anuluj
Zapisz