subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@apache.org
Subject svn commit: r1407597 - /subversion/trunk/subversion/svnmucc/svnmucc.c
Date Fri, 09 Nov 2012 19:34:48 GMT
Author: cmpilato
Date: Fri Nov  9 19:34:46 2012
New Revision: 1407597

URL: http://svn.apache.org/viewvc?rev=1407597&view=rev
Log:
Fix issue #4079 ("svnmucc cp rev arg" SEGV).

* subversion/svnmucc/svnmucc.c
  (main): Fix the conditional which checks for a shortage of URL arguments.

Modified:
    subversion/trunk/subversion/svnmucc/svnmucc.c

Modified: subversion/trunk/subversion/svnmucc/svnmucc.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnmucc/svnmucc.c?rev=1407597&r1=1407596&r2=1407597&view=diff
==============================================================================
--- subversion/trunk/subversion/svnmucc/svnmucc.c (original)
+++ subversion/trunk/subversion/svnmucc/svnmucc.c Fri Nov  9 19:34:46 2012
@@ -1300,7 +1300,7 @@ main(int argc, const char **argv)
           else
             anchor = svn_uri_get_longest_ancestor(anchor, url, pool);
 
-          if ((++i == action_args->nelts) && (j >= num_url_args))
+          if ((++i == action_args->nelts) && (j + 1 < num_url_args))
             insufficient(pool);
         }
       APR_ARRAY_PUSH(actions, struct action *) = action;



Mime
View raw message