Subversion Repositories SvarDOS

Rev

Rev 2189 | Rev 2193 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2189 Rev 2190
Line 461... Line 461...
461
  unsigned long summary_totsz = 0;
461
  unsigned long summary_totsz = 0;
462
  unsigned char drv = 0;
462
  unsigned char drv = 0;
463
  struct dirrequest req;
463
  struct dirrequest req;
464
 
464
 
465
  /* make sure there's no risk of buffer overflow */
465
  /* make sure there's no risk of buffer overflow */
466
  if (sizeof(buf) > p->BUFFERSZ) {
466
  if (sizeof(*buf) > p->BUFFERSZ) {
-
 
467
    sprintf(p->BUFFER, "INTERNAL DIR ERROR: p->BUFFERSZ=%u / required=%u", p->BUFFERSZ, sizeof(*buf));
467
    outputnl("INTERNAL MEM ERROR IN " __FILE__);
468
    outputnl(p->BUFFER);
468
    return(CMD_FAIL);
469
    return(CMD_FAIL);
469
  }
470
  }
470
 
471
 
471
  if (cmd_ishlp(p)) {
472
  if (cmd_ishlp(p)) {
472
    nls_outputnl(37,0); /* "Displays a list of files and subdirectories in a directory" */
473
    nls_outputnl(37,0); /* "Displays a list of files and subdirectories in a directory" */