diff --git a/damus/Nostr/NostrResponse.swift b/damus/Nostr/NostrResponse.swift index a713953f..5b1ec08b 100644 --- a/damus/Nostr/NostrResponse.swift +++ b/damus/Nostr/NostrResponse.swift @@ -39,7 +39,7 @@ enum NostrResponse { static func owned_from_json(json: String) -> NostrResponse? { return json.withCString{ cstr in - let bufsize: Int = max(Int(Double(json.utf8.count) * 2.0), Int(getpagesize())) + let bufsize: Int = max(Int(Double(json.utf8.count) * 4.0), Int(getpagesize())) let data = malloc(bufsize) if data == nil {