Permalink
Browse files

Fix crasher due to calling memcpy wrong. Oops!

  • Loading branch information...
bjhomer committed May 7, 2011
1 parent 0c5278d commit ca877cf8f6e0da5c091740fadd5e39da205190b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 HSCountingInputStream/HSCountingInputStream.m
@@ -124,7 +124,7 @@ - (BOOL)_setCFClientFlags:(CFOptionFlags)inFlags
if (inCallback != NULL) {
requestedEvents = inFlags;
copiedCallback = inCallback;
- memcpy(&copiedContext, &inContext, sizeof(CFStreamClientContext));
+ memcpy(&copiedContext, inContext, sizeof(CFStreamClientContext));
if (copiedContext.info && copiedContext.retain) {
copiedContext.retain(copiedContext.info);

0 comments on commit ca877cf

Please sign in to comment.