Update log.c

Issue 348 dstt vs src