Skip to content

Commit

Permalink
Changing ParseInt to parsing unsigned int (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitali-salvi authored May 30, 2024
1 parent f32323d commit bb2d21c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (w *windowsEventLog) loadState() {
log.Printf("W! [wineventlog] Issue encountered when reading offset from file %s: %v", w.stateFilePath, err)
return
}
offset, err := strconv.ParseInt(strings.Split(string(byteArray), "\n")[0], 10, 64)
offset, err := strconv.ParseUint(strings.Split(string(byteArray), "\n")[0], 10, 64)
if err != nil {
log.Printf("W! [wineventlog] Issue encountered when parsing offset value %v: %v", byteArray, err)
return
Expand Down

0 comments on commit bb2d21c

Please sign in to comment.