Skip to content

Commit 3b03fcc

Browse files
authored
Update sskeyparser.go
Bug fixed.
1 parent 510a43b commit 3b03fcc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sskeyparser.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,11 @@ func setSsServiceConfig(path string, middle []byte) bool {
374374
fmt.Println("Unable to write ss config file:", writeerr)
375375
return false
376376
}
377+
truncerr := file.Truncate(int64(len(newdata)))
378+
if truncerr != nil {
379+
fmt.Println("Unable to write ss config file:", truncerr)
380+
return false
381+
}
377382
}
378383
} else {
379384
return false

0 commit comments

Comments
 (0)