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

Diff for /src/usr.bin/tmux/Attic/arg.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/06/02 11:18:59
Line 76 
Line 76 
   
                 /* Trim a trailing : if any from the argument. */                  /* Trim a trailing : if any from the argument. */
                 n = strlen(arg2);                  n = strlen(arg2);
                 if (arg2[n - 1] == ':')                  if (n && arg2[n - 1] == ':')
                         arg2[n - 1] = '\0';                          arg2[n - 1] = '\0';
   
                 /* Try and look up the client name. */                  /* Try and look up the client name. */
Line 101 
Line 101 
   
                 /* Trim a trailing : if any from the argument. */                  /* Trim a trailing : if any from the argument. */
                 n = strlen(arg2);                  n = strlen(arg2);
                 if (arg2[n - 1] == ':')                  if (n && arg2[n - 1] == ':')
                         arg2[n - 1] = '\0';                          arg2[n - 1] = '\0';
   
                 /* See if the argument matches a session. */                  /* See if the argument matches a session. */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2