Update log.c

Issue 348 dstt vs src
Merge pull request #350 from jrossi/issue-348

Update log.c