Improve login, replace deprecated substr calls

This commit is contained in:
Casper Warden
2023-11-29 16:01:50 +00:00
parent 09db20682e
commit 58c5a1a08e
14 changed files with 114 additions and 78 deletions

View File

@@ -121,7 +121,7 @@ export class TarWriter extends Transform
private chopString(str: string, maxLength: number): string
{
return str.substr(0, maxLength - 1);
return str.substring(0, maxLength - 1);
}
private octalBuf(num: number, length: number): Buffer