]> src.bluestatic.org Git - macgdbp.git/commit
Fix a somewhat serious bug in the WriteString loop.
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 11 Sep 2012 04:20:34 +0000 (00:20 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 11 Sep 2012 04:20:34 +0000 (00:20 -0400)
commit46c5d019e2adfa1639bcb193bf4fe35860d9707b
tree4597abb403013865abb769af859e0619471d0386
parent0508dff4d4670e79a64e424e4a66af1d2003468e
Fix a somewhat serious bug in the WriteString loop.

memmove was being performed on |string|, which is an NSString. The proper variable
to operate on is |cString|. But even then, that's not correct because the
destination buffer is not owned. Use pointer arithmetic instead.
Source/NetworkCallbackController.mm