top(1): Fix the prompt bug and core dump problem in o / p mode that occurred by r336028
Details
Details
top (r336028):
- top -a
- type: o
- ISSUE1: Prompt is not displayed
- type: pid[return]
- Increase the width of your terminal
- ISSUE2: Core dumped
top (patched)
- top -a
- type: o
- FIXED1: You can see the prompt
- type: pid[return]
- Increase the width of your terminal
- FIXED2: Works
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Also, can you resubmit with diff -U99999? With svn: svn diff -x -U99999. With git: git diff -U99999. This will improve context.
usr.bin/top/display.c | ||
---|---|---|
963 ↗ | (On Diff #45006) | My original email was incorrect. This should be setup_buffer_bufsiz instead. + 5 should always be the same as second argument to setup_buffer(). It is now but it should be a macro to ensure they are the same, avoiding someone changing one and not the other. |
usr.bin/top/display.c | ||
---|---|---|
1355 ↗ | (On Diff #45007) | Can the 2 here be # defined or added to one of the other sizes so that it's not a "magic number" ? |
usr.bin/top/display.c | ||
---|---|---|
1355 ↗ | (On Diff #45007) | Why +2? Why is it not a part of addlen? |