Skip to content

Loading…

Fixed a bug in the Base64 files #100

Open
wants to merge 2 commits into from

2 participants

@hasseily

There's a bug in the size of buffers in the base64 files. This commit fixes it, and allows the NSData+Base64 files to be used independently of MGTwitterEngine

@diegoreymendez

Please merge this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 3 deletions.
  1. +0 −2 NSData+Base64.h
  2. +1 −1 NSData+Base64.m
View
2 NSData+Base64.h
@@ -8,8 +8,6 @@
// Original development by Dave Winer.
//
-#import "MGTwitterEngineGlobalHeader.h"
-
@interface NSData (Base64)
/*! @function +dataWithBase64EncodedString:
View
2 NSData+Base64.m
@@ -32,7 +32,7 @@ - (id) initWithBase64EncodedString:(NSString *) string {
unsigned long ixtext = 0;
unsigned long lentext = 0;
unsigned char ch = 0;
- unsigned char inbuf[3], outbuf[4];
+ unsigned char inbuf[4], outbuf[3];
short i = 0, ixinbuf = 0;
BOOL flignore = NO;
BOOL flendtext = NO;
Something went wrong with that request. Please try again.