use static initialization for output string in RenderCurrentFolder #473

Merged
stklcode merged 1 commits from fix/render-current-folder into master 2023-06-24 05:50:47 -05:00

1 Commits

Author SHA1 Message Date
Stefan Kalscheuer
a9c018f18c use static initialization for output string in RenderCurrentFolder
The dynamic sized variable outputString may not be properly initialized.
Second issue, we fill the line for directories beyond fileNameLength, so
the initialization is not always sufficient.

We now initialize outputString statically with the maximum printable
size which should resolve both.

Also clean up some variable declarations.
2023-06-24 12:37:51 +02:00