>>795
環境によってはたまたま動いたりするが、
普通は "test log" の文字列はメモリ上では書込み禁止領域になると思われ

書き換えるんなら char ptest[] = "test log";
でいく