[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Issue #4079: 'svnmucc cp 1 ^/trunk' segfaults

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Tue, 13 Dec 2011 17:14:38 +0200

[[[
* tools/client-side/svnmucc/svnmucc.c
  (main): Fix the 'ran out of arguments' check.
]]]

Index: tools/client-side/svnmucc/svnmucc.c
===================================================================
--- tools/client-side/svnmucc/svnmucc.c (revision 1213724)
+++ tools/client-side/svnmucc/svnmucc.c (working copy)
@@ -1169,7 +1169,7 @@
           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;
Received on 2011-12-13 16:15:31 CET

This is an archived mail posted to the Subversion Dev mailing list.