fix Issue 7254 - ICE(cod3.c) returning strings as static arrays

http://d.puremagic.com/issues/show_bug.cgi?id=7254