Преглед на файлове

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 години
родител
ревизия
81ec260516
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      noice.c

+ 1
- 1
noice.c Целия файл

@@ -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));


Loading…
Отказ
Запис