mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
Changes in this release: * New command set-tab-width to change the tabulator width on a per-buffer basis. * Let the space-to-tabstop command move to the right position even if the line contains tabs, control characters, or non-ASCII bytes. * Fall back to /bin/sh if $SHELL is undefined. * Fix parsing of tag files with duplicate entries. Instead of erroring out, ignore duplicates. Fixes using /var/db/libc.tags again. * Change the visit-tags-table command to immediately load the tag file, and drop the lazy mechanics. * Do not leak memory in pop-tag-mark if it fails to switch buffers. * Fix a read buffer overrun caused by -u arguments longer than 1023 bytes. * Fix a write buffer overrun on the stack caused by blink-and-insert matching a very long line that is not currently visible in the window. * Skip checking permissions of conffile with access(2). * Resurrect no-tab-mode and add it to the list of modes that can be set with set-default-mode. From: https://www.openbsd.org/74.html PR: 274611
19 lines
434 B
C
19 lines
434 B
C
--- fileio.c.orig 2023-10-22 13:42:02 UTC
|
|
+++ fileio.c
|
|
@@ -22,6 +22,7 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
+#include <sys/param.h>
|
|
|
|
#include "def.h"
|
|
#include "kbd.h"
|
|
@@ -705,7 +706,7 @@ expandtilde(const char *fn)
|
|
struct passwd *pw;
|
|
struct stat statbuf;
|
|
const char *cp;
|
|
- char user[LOGIN_NAME_MAX], path[NFILEN];
|
|
+ char user[MAXLOGNAME], path[NFILEN];
|
|
char *ret;
|
|
size_t ulen, plen;
|
|
|