Changeset 49a8434 for functions.c


Ignore:
Timestamp:
Dec 6, 2008, 6:55:29 PM (16 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b9cb41b
Parents:
7ce4003
git-author:
Nelson Elhage <nelhage@mit.edu> (12/06/08 18:52:42)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/06/08 18:55:29)
Message:
Fix three small warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r2aaca94 r49a8434  
    19541954void owl_function_status()
    19551955{
    1956   char buff[5000];
     1956  char buff[MAXPATHLEN+1];
    19571957  time_t start;
    19581958  int up, days, hours, minutes;
     
    19741974
    19751975  owl_fmtext_append_normal(&fm, "  Current Directory: ");
    1976   (void) getcwd(buff, MAXPATHLEN);
    1977   owl_fmtext_append_normal(&fm, buff);
     1976  if(getcwd(buff, MAXPATHLEN) == NULL) {
     1977    owl_fmtext_append_normal(&fm, "<Error in getcwd>");
     1978  } else {
     1979    owl_fmtext_append_normal(&fm, buff);
     1980  }
    19781981  owl_fmtext_append_normal(&fm, "\n");
    19791982
Note: See TracChangeset for help on using the changeset viewer.