c9c8f97e88
- Depend on the latest version of xview-config - Mark as LICENSE sun-openlook-license - Bump pkgrevision
36 lines
1 KiB
Text
36 lines
1 KiB
Text
$NetBSD: patch-ej,v 1.2 2009/12/10 20:35:58 abs Exp $
|
|
|
|
--- lib/libxview/textsw/txt_attr.c.orig 1993-06-29 05:17:49.000000000 +0000
|
|
+++ lib/libxview/textsw/txt_attr.c
|
|
@@ -14,6 +14,7 @@ static char sccsid[] = "@(#)txt_attr
|
|
* Attribute set/get routines for text subwindows.
|
|
*/
|
|
|
|
+#include <limits.h>
|
|
#include <xview/pkg.h>
|
|
#include <xview/attrol.h>
|
|
#include <xview_private/primal.h>
|
|
@@ -79,7 +80,11 @@ set_first(view, error_msg, filename, res
|
|
int first_line;
|
|
int all_views;
|
|
{
|
|
+#ifdef NAME_MAX
|
|
+ char msg_buf[NAME_MAX + 100];
|
|
+#else
|
|
char msg_buf[MAXNAMLEN + 100];
|
|
+#endif
|
|
char *msg;
|
|
Es_status load_status;
|
|
Textsw_status result = TEXTSW_STATUS_OKAY;
|
|
@@ -96,7 +101,11 @@ set_first(view, error_msg, filename, res
|
|
#else
|
|
if (filename) {
|
|
#endif
|
|
+#ifdef NAME_MAX
|
|
+ CHAR scratch_name[NAME_MAX];
|
|
+#else
|
|
CHAR scratch_name[MAXNAMLEN];
|
|
+#endif
|
|
Es_handle new_esh;
|
|
#ifdef OW_I18N
|
|
char *filename_mb;
|