Skip to content
Browse files

Patch: increase fixed list length limit to 2048

  • Loading branch information...
1 parent 553a8e3 commit f0a318760d9c55efc50f2d93b63ec38d9425a697 @lwille committed Apr 12, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 Library/Formula/libgphoto2.rb
View
20 Library/Formula/libgphoto2.rb
@@ -18,4 +18,24 @@ def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
+
+ def patches
+ # increase fixed list limit from 1024 to 2048
+ DATA
+ end
end
+
+__END__
+diff --git a/libgphoto2/gphoto2-list.c b/libgphoto2/gphoto2-list.c
+index cc1b0ba..f6569ad 100644
+--- a/libgphoto2/gphoto2-list.c
++++ b/libgphoto2/gphoto2-list.c
+@@ -72,7 +72,7 @@
+
+ #ifdef CAMERALIST_STRUCT_COMPATIBILITY
+
+-#define MAX_ENTRIES 1024
++#define MAX_ENTRIES 2048
+ #define MAX_LIST_STRING_LENGTH 128
+ struct _CameraList {
+ int count;

0 comments on commit f0a3187

Please sign in to comment.
Something went wrong with that request. Please try again.