@Hugo BTW, setting size=4 instead of 4096 reveals that your improvement doesn't quite work, see output of result after fgets (repeated because of while loop): result: "/home/r" result: "uslan/.kde/shar" result: "e/config/:/opt/kde4/share/confi"
@Hugo :/opt/kde4/ share/confi"
BTW, setting size=4 instead of 4096 reveals that your improvement doesn't quite work, see output of result after fgets (repeated because of while loop):
result: "/home/r"
result: "uslan/.kde/shar"
result: "e/config/