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

Diff for /src/usr.bin/mg/dired.c between version 1.17 and 1.18

version 1.17, 2005/04/28 07:14:09 version 1.18, 2005/05/15 21:19:08
Line 295 
Line 295 
 {  {
         char    frname[NFILEN], toname[NFILEN], *bufp;          char    frname[NFILEN], toname[NFILEN], *bufp;
         int     stat;          int     stat;
         int     off;          size_t  off;
         BUFFER *bp;          BUFFER *bp;
   
         if (d_makename(curwp->w_dotp, frname, sizeof(frname)) != FALSE) {          if (d_makename(curwp->w_dotp, frname, sizeof(frname)) != FALSE) {
Line 304 
Line 304 
         }          }
         off = strlcpy(toname, curbp->b_fname, sizeof(toname));          off = strlcpy(toname, curbp->b_fname, sizeof(toname));
         if (off >= sizeof(toname) - 1) {        /* can't happen, really */          if (off >= sizeof(toname) - 1) {        /* can't happen, really */
                 ewprintf("too long directory name");                  ewprintf("Directory name too long");
                 return (FALSE);                  return (FALSE);
         }          }
         if ((bufp = eread("Copy %s to: ", toname + off, sizeof(toname) - off,          if ((bufp = eread("Copy %s to: ", toname + off, sizeof(toname) - off,
Line 324 
Line 324 
 d_rename(int f, int n)  d_rename(int f, int n)
 {  {
         char    frname[NFILEN], toname[NFILEN], *bufp;          char    frname[NFILEN], toname[NFILEN], *bufp;
         int     stat, off;          int     stat;
           size_t  off;
         BUFFER *bp;          BUFFER *bp;
   
         if (d_makename(curwp->w_dotp, frname, sizeof(frname)) != FALSE) {          if (d_makename(curwp->w_dotp, frname, sizeof(frname)) != FALSE) {
Line 333 
Line 334 
         }          }
         off = strlcpy(toname, curbp->b_fname, sizeof(toname));          off = strlcpy(toname, curbp->b_fname, sizeof(toname));
         if (off >= sizeof(toname) - 1) {        /* can't happen, really */          if (off >= sizeof(toname) - 1) {        /* can't happen, really */
                 ewprintf("too long directory name");                  ewprintf("Directory name too long");
                 return (FALSE);                  return (FALSE);
         }          }
         if ((bufp = eread("Rename %s to: ", toname + off,          if ((bufp = eread("Rename %s to: ", toname + off,
Line 453 
Line 454 
 d_create_directory(int f, int n)  d_create_directory(int f, int n)
 {  {
         char     tocreate[MAXPATHLEN], *bufp;          char     tocreate[MAXPATHLEN], *bufp;
         ssize_t  off;          size_t  off;
         BUFFER  *bp;          BUFFER  *bp;
   
         off = strlcpy(tocreate, curbp->b_fname, sizeof(tocreate));          off = strlcpy(tocreate, curbp->b_fname, sizeof(tocreate));

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18