Update sync.c
Merge pull request #3 from thirdzcee/patch-3

Update sync.c