strdup giving weird warning and Segmentation fault I was working on other project and found, for me, strange behaviour from strdup.