Revision: 29266
          http://sourceforge.net/p/bibdesk/svn/29266
Author:   hofman
Date:     2025-05-05 22:23:17 +0000 (Mon, 05 May 2025)
Log Message:
-----------
use macro

Modified Paths:
--------------
    trunk/bibdesk/BDSKSRUGroupServer.m

Modified: trunk/bibdesk/BDSKSRUGroupServer.m
===================================================================
--- trunk/bibdesk/BDSKSRUGroupServer.m  2025-05-05 22:20:05 UTC (rev 29265)
+++ trunk/bibdesk/BDSKSRUGroupServer.m  2025-05-05 22:23:17 UTC (rev 29266)
@@ -46,6 +46,8 @@
 
 #define MAX_RESULTS 100
 
+#define MAX_URL_LENGTH 4096
+
 #define MARCXML_STRING  @"MARC XML"
 #define DCXML_STRING    @"DC XML"
 #define MODS_STRING     @"MODS"
@@ -159,7 +161,7 @@
     NSString *query = [self searchQueryWithRange:range];
     NSURL *url = [self serverURL];
     NSString *urlString = [url absoluteString];
-    if ([urlString length] + [query length] < 4096) {
+    if ([urlString length] + [query length] < MAX_URL_LENGTH) {
         url = [NSURL URLWithString:[NSString stringWithFormat:@"%@?%@", 
urlString, query]];
         request = [NSMutableURLRequest requestWithURL:url];
     } else {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to