Re: Upgrade to OpenBSD 7.5 broke the bsd game of cribbage

2024-06-01 Thread Mark Jamsek
} > > if (c == killchar()) { > > pos = 0; > > - move(oy, ox); > > + wmove(Msgwin, oy, ox); > > continue; > > } > > if (pos >= LINESIZE - 1 || !(isalnum(c) || c == ' ')) { > > @@ -538,12 +535,11 @@ get_line(void) > > if (islower(c)) > > c = toupper(c); > > linebuf[pos++] = c; > > - addstr(unctrl(c)); > > + waddstr(Msgwin, unctrl(c)); > > Mpos++; > > } > > while (pos < sizeof(linebuf)) > > linebuf[pos++] = '\0'; > > - stdscr = oscr; > > return (linebuf); > > } > > > > -- Mark Jamsek <https://bsdbox.org> GPG: F2FF 13DE 6A06 C471 CA80 E6E2 2930 DC66 86EE CF68

Re: possible underflow (wrap) in tcpdump/print-domain.c

2023-02-26 Thread Mark Jamsek
nt-- > 0 && cp < snapend) { > > > putchar(','); > > > if ((cp = ns_rprint(cp, bp, is_mdns)) > > > == NULL) > > > goto trunc; > > > @@ -723,11 +723,11 @

Re: mail(1) "save" command straying from POSIX for missing filename

2022-12-18 Thread Mark Jamsek
int mark, char *cmd, struct ignoretab (void)Fclose(obuf); return(1); } + nlines += mp->m_lines; + sz += mp->m_size; if (mark) mp->m_flag |= MSAVED; } @@ -189,7 +193,7 @@ save1(char *str, int mark, char *cmd, struct ignoretab if (ferror(obuf)) warn("%s", file); (void)Fclose(obuf); - printf("%s\n", disp); + printf("%s %d/%lld\n", disp, nlines, (long long)sz); return(0); } -- Mark Jamsek GPG: F2FF 13DE 6A06 C471 CA80 E6E2 2930 DC66 86EE CF68 signature.asc Description: PGP signature

Re: mail(1) "save" command straying from POSIX for missing filename

2022-12-16 Thread Mark Jamsek
12:59:22 - @@ -633,6 +633,9 @@ retained fields. .Pq Ic s Takes a message list and a filename and appends each message in turn to the end of the file. +If filename is omitted, the +.Ar mbox +file is used. The filename in quotes, followed by the line count and character count is echoed on th