Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I am having problems reading the filenames provided by ftpparse. What am I doing wrong?

0
Posted

I am having problems reading the filenames provided by ftpparse. What am I doing wrong?

0

A.Most probably you are getting a filename that is not terminated with a ‘\0’, and then the standard c-string libraries break. One simple solution is to copy the filename to a new string that is one character longer and then write the ‘\0’ in the extra character.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123