mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-22 11:31:44 +01:00
use strncat(sizeof(...) - strlen(...) - 1)
This commit is contained in:
@@ -1148,7 +1148,7 @@ int format_script(struct descriptor_data *d)
|
||||
|
||||
*line = '\0';
|
||||
for (nlen = 0, i = 0;i<indent;i++) {
|
||||
strncat(line, " ", sizeof(line)-1);
|
||||
strncat(line, " ", sizeof(line) - strlen(line) - 1);
|
||||
nlen += 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user