pkgsrc/comms/minicom/patches/patch-ag
adam 14ab841da9 Changes 2.5:
* Handle device reconnected more smoothly (USB-serial dongles)
* Translation updates: Danish
* Several fixes (see ChangeLog)

Changes 2.4:
* Add -D and -b options to specify device and baud rate on the command
   line.
* Do character conversion between local and remote side (-R option)
* Added indonesian translation
* Compatibility fixes for recent build environments
* Remove code that handled very old systems

Changes 2.3:
* Fix build on Mac OS X
* New version of the dial format to be little and big endian as well as
   32/64 bit safe
* Support more baud rates
* Handle device disappearances (e.g. serial-USB device unplug)
* Various build and other fixes

Changes 2.2:
* Vietnamese translation added
* Norwegian translation added
* Traditional chinese translation added
* Swedish translation added
* Romanian translation added
* default to 8bit mode if LANG or LC_ALL are set
* default baud rate set to 115200
* Various code cleanups and fixes
2011-08-01 09:30:33 +00:00

16 lines
575 B
Text

$NetBSD: patch-ag,v 1.4 2011/08/01 09:30:33 adam Exp $
--- src/getsdir.c.orig 2009-12-12 15:47:47.000000000 +0000
+++ src/getsdir.c
@@ -185,7 +185,11 @@ int getsdir(const char *dirpath, const c
int l;
/* copy the filename */
+#ifdef NAME_MAX
+ strncpy(datb_cur->data[datb_cur->cnt].fname, dp->d_name, NAME_MAX);
+#else
strncpy(datb_cur->data[datb_cur->cnt].fname, dp->d_name, MAXNAMLEN);
+#endif
/* get information about the directory entry */
snprintf(fpath, sizeof(fpath), "%s/%s", dirpath, dp->d_name);