Skip to content

Commit

Permalink
Revert "feat: Bigger buffer"
Browse files Browse the repository at this point in the history
This reverts commit 6837c61.
  • Loading branch information
Kimiblock committed Feb 22, 2024
1 parent 6837c61 commit b144548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func monitorDbus(path, member string) {
return
}

buf := make([]byte, 20480000) // Super large buffer to prevent apps screwing up snotify
buf := make([]byte, 2048) // Limit the line length to 2048 bytes

for {
n, err := stdout.Read(buf)
Expand Down

0 comments on commit b144548

Please sign in to comment.