Skip to content

Commit

Permalink
fix flag conversion to fix the security warning (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 authored Nov 11, 2024
1 parent c627211 commit e62df71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion z/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (sf *SuperFlag) GetDuration(opt string) time.Duration {
}
if strings.Contains(val, "d") {
val = strings.Replace(val, "d", "", 1)
days, err := strconv.ParseUint(val, 0, 64)
days, err := strconv.ParseInt(val, 0, 64)
if err != nil {
return time.Duration(0)
}
Expand Down

0 comments on commit e62df71

Please sign in to comment.