FreeBSD Bugzilla – Attachment 98063 Details for
Bug 136900
[patch] fix sysutils/sfdisk on 8.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 579 bytes, created by
Alex Kozlov
on 2009-07-19 13:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alex Kozlov
Created:
2009-07-19 13:40:01 UTC
Size:
579 bytes
patch
obsolete
>Index: main.c >@@ -49,7 +49,7 @@ > Initialize(int argc, char *argv[]) > { > sigset_t signalset; >- struct ttysize ts; >+ struct winsize ws; > char *diskname; > > Fake = FALSE; >@@ -59,11 +59,11 @@ > > diskname = check_arg(argc, argv); > >- if (ioctl(0, TIOCGSIZE, &ts) == -1) { >+ if (ioctl(0, TIOCGWINSZ, &ws) == -1) { > msgDebug("Unable to get terminal size - errno %d\n", errno); >- ts.ts_lines = 0; >+ ws.ws_row = 0; > } >- StatusLine = ts.ts_lines ? ts.ts_lines - 1: TTY_STATUS_LINE; >+ StatusLine = ws.ws_row ? ws.ws_row - 1: TTY_STATUS_LINE; > > init_dialog();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 136900
: 98063