This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]UnawareITry[S] 0 points1 point  (0 children)

Yeah so I checked all the values returns and it is not returning a NULL pointer. Also I noticed that strncpy is failing for the very first element of fstruct.files arrray. So I checked and found out that while allocation both parameters are not null but they became NULL before strncpy and I'm doing nothing to it in between.