79722706

Date: 2025-08-01 15:30:36
Score: 2
Natty:
Report link

Read doesn't guarantee a null terminated string, which when tokenizing it and reusing that string, will leave old data in the input if the new data doesn't overwrite it. Like Ian and Weather vane mentioned it's best to use an alternative like getline() or fgets() .

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rioboyva2554