X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d8e4b51a41a9507584d56946d0eae0e5cef6d6f5..94268a46cd30fc72b51714e42e9db741eb29cc73:/IkiWiki/Plugin/cvs.pm

diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm
index 1a432c052..71566d212 100644
--- a/IkiWiki/Plugin/cvs.pm
+++ b/IkiWiki/Plugin/cvs.pm
@@ -436,8 +436,9 @@ sub rcs_recentchanges ($) {
 	return @ret;
 }
 
-sub rcs_diff ($) {
+sub rcs_diff ($;$) {
 	my $rev=IkiWiki::possibly_foolish_untaint(int(shift));
+	my $maxlines=shift;
 
 	local $CWD = $config{srcdir};
 
@@ -459,7 +460,9 @@ sub rcs_diff ($) {
 }
 
 sub rcs_getctime ($) {
-	my $file=$config{srcdir}."/".shift();
+	my $file=shift;
+
+	local $CWD = $config{srcdir};
 
 	my $cvs_log_infoline=qr/^date: (.+);\s+author/;