Fix varying string struct for VMS's home-grown glob.
authorCraig A. Berry <craigberry@mac.com>
Fri, 25 May 2012 22:16:20 +0000 (17:16 -0500)
committerCraig A. Berry <craigberry@mac.com>
Fri, 25 May 2012 22:16:20 +0000 (17:16 -0500)
We were only using 4K, not 64K, and we were requesting longword
alignment but not providing a struct size that was a multiple of 4.

vms/vms.c

index eda8c30..cee83bb 100644 (file)
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -196,7 +196,8 @@ struct filescan_itmlst_2 {
 
 struct vs_str_st {
     unsigned short length;
-    char str[65536];
+    char str[VMS_MAXRSS];
+    unsigned short pad; /* for longword struct alignment */
 };
 
 #ifdef __DECC