strcat(cmd, fName); you do not have place in the cmd to add there even one byte
change cmd declaration so the buffer be big enough to store the resulting string
strcat(cmd, fName); you do not have place in the cmd to add there even one byte
change cmd declaration so the buffer be big enough to store the resulting string
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler