This commit is contained in:
Mark Côté 2014-05-20 23:06:38 -04:00
Родитель cd0bdf1ad6
Коммит ea382a7da8
3 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -70,7 +70,7 @@ Prerequisites - Mac OS X
You need to have the latest version of Xcode (available from the App Store) and the
command line developer tools packages installed. You will have to build your own
nspr Mac installation, available at
nspr Mac installation, available at
https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/.
The default nspr build installs nspr to /usr/local; the Mac Makefile assumes that you
@ -81,4 +81,3 @@ have done that. To build Negatus, do:
Invoke with:
./agent

Просмотреть файл

@ -309,7 +309,7 @@ std::string
CommandEventHandler::cwd(std::vector<std::string>& args)
{
char buffer[BUFSIZE];
// FIXME: Check for errors here.
getcwd(buffer, BUFSIZE);
return std::string(buffer);

Просмотреть файл

@ -25,7 +25,7 @@ id()
continue;
fgets(buffer, BUFSIZE, iface);
// FIXME: Error handling here. What if line is longer than BUFSIZE bytes?
buffer[strlen(buffer) - 1] = '\0'; // remove extra newline
fclose(iface);