🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jeff Treece Fri, 01 Sep 1989 21:17
diff bug on Alliant
#400
Author: Jeff Treece
Date: Fri, 01 Sep 1989 21:17
67 lines
2110 bytes
Hello,
I have just installed diff-1.7 on an Alliant FX/4.  There was one problem
with the compilation that the following changes fix.  The problem was
that an identifier is named "vector," which happens to be defined in one
of the <machine/h> files.  I hope this report is of use.
Keep up the good work!
--------------------------------------------------------------------
*** diff.c	Fri Sep  1 16:05:18 1989
--- diff.c~	Wed Apr 26 15:38:27 1989
***************
*** 43,50 ****
     the length of that vector.  */
  
  static char *
! option_list (vectore, count)
!      char **vectore;
       int count;
  {
    int i;
--- 43,50 ----
     the length of that vector.  */
  
  static char *
! option_list (vector, count)
!      char **vector;
       int count;
  {
    int i;
***************
*** 52,58 ****
    char *result;
  
    for (i = 0; i < count; i++)
!     length += strlen (vectore[i]) + 1;
  
    result = (char *) xmalloc (length + 1);
    result[0] = 0;
--- 52,58 ----
    char *result;
  
    for (i = 0; i < count; i++)
!     length += strlen (vector[i]) + 1;
  
    result = (char *) xmalloc (length + 1);
    result[0] = 0;
***************
*** 60,66 ****
    for (i = 0; i < count; i++)
      {
        strcat (result, " ");
!       strcat (result, vectore[i]);
      }
  
    return result;
--- 60,66 ----
    for (i = 0; i < count; i++)
      {
        strcat (result, " ");
!       strcat (result, vector[i]);
      }
  
    return result;
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jeff Treece
Sabbagh Associates
treece@sabbagh.com ... iuvax.cs.indiana.edu!sabbagh!treece
(812) 339-8273
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads