changed crop function to reallocate pixels and use memcpy. fixes #3346
changed to use the ofPixels swap method to ensure all variales get swapped. fixes #3346
Update ofUtils.cpp

Changed `char c;` to `int c;` because fgetc() returns int and EOF is also int. Otherwise the comparison `c != EOF` fails in my tests on Raspberry Pi (Raspbian Wheezy) and ofSystem() gets stuck in the do-while-loop. (That's probably because EOF is defined as -1 and when fgetc returns this to a char variable, it is saved as 255 and a comparison with EOF fails.)
Merge pull request #3428 from timscaffidi/bugfix-3346

Bugfix 3346: fix crop related runtime error
Update ofUtils.cpp

Changed while loop in ofSystem as suggested by arturoc to prevent EOF being read into the return string.
Merge pull request #3429 from chphmh/patch-1

Update ofUtils.cpp
potential bug when reallocating with same number of pixels but different dimensions, closes #3432
Merge pull request #3434 from kylemcdonald/fix-ofPixels-allocate

potential bug when reallocating
Merge branch 'master' into master-64bit