diff options
-rw-r--r-- | libgphoto2/gphoto2-list.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgphoto2/gphoto2-list.c b/libgphoto2/gphoto2-list.c index 6018f2762..508496a2f 100644 --- a/libgphoto2/gphoto2-list.c +++ b/libgphoto2/gphoto2-list.c @@ -73,11 +73,12 @@ #ifdef CAMERALIST_STRUCT_COMPATIBILITY #define MAX_ENTRIES 1024 +#define MAX_LIST_STRING_LENGTH 128 struct _CameraList { int count; struct { - char name [128]; - char value [128]; + char name [MAX_LIST_STRING_LENGTH]; + char value [MAX_LIST_STRING_LENGTH]; } entry [MAX_ENTRIES]; int ref_count; }; |