[BACK]Return to filename.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/filename.c between version 1.12 and 1.13

version 1.12, 2006/05/23 18:32:52 version 1.13, 2006/12/06 05:03:29
Line 676 
Line 676 
         /*          /*
          * Overwrite the final trailing space with a null terminator.           * Overwrite the final trailing space with a null terminator.
          */           */
         gfilename[strlen(gfilename) - 1] = '\0';          if (gfilename[0] != '\0' && gfilename[strlen(gfilename) - 1] == ' ')
                   gfilename[strlen(gfilename) - 1] = '\0';
         GLOB_LIST_DONE(list);          GLOB_LIST_DONE(list);
 }  }
 #else  #else

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13