79753156

Date: 2025-09-02 06:46:44
Score: 1
Natty:
Report link

I think the problem occurs because you wrote on memory that you don't own sizeof return how many bits does the datatype takes in memory and since your are given it an int it probably return 4 or 8 according to your system

So I think a fix for your problem will be (Char*)malloc(sizeof(char) * Length + 1)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mohaurm 3