Revision: 5387
http://skim-app.svn.sourceforge.net/skim-app/?rev=5387&view=rev
Author: hofman
Date: 2009-05-20 16:47:16 +0000 (Wed, 20 May 2009)
Log Message:
-----------
Fix a bug where the user agent string was not null terminated
Modified Paths:
--------------
trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m
Modified: trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m
===================================================================
--- trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m 2009-05-20
16:31:33 UTC (rev 5386)
+++ trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m 2009-05-20
16:47:16 UTC (rev 5387)
@@ -32,7 +32,7 @@
[appcast setDelegate:self];
NSString *userAgent = [NSString stringWithFormat: @"%@/%@ Sparkle/%@",
[aHost name], [aHost displayVersion], ([SPARKLE_BUNDLE
objectForInfoDictionaryKey:@"CFBundleVersion"] ?: nil)];
NSData * cleanedAgent = [userAgent
dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
- userAgent = [NSString stringWithCString:[cleanedAgent bytes]
encoding:NSASCIIStringEncoding];
+ userAgent = [[[NSString alloc] initWithData:cleanedAgent
encoding:NSASCIIStringEncoding] autorelease];
[appcast setUserAgentString:userAgent];
[appcast fetchAppcastFromURL:URL];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit