Fix wrong memcpy
Use glib str functions
For static arrays, use sizeof(array), not magic numbers
Fix whitespace
Revert "Fix wrong memcpy"

This reverts commit 3697187dd7aacba9646d903e89669dcb4f7d2b5d.
Merge pull request #478 from LebedevRI/sizeof-vs-magic-numbers

Sizeof vs magic numbers