delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/07/17/23:39:24

From: k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at (Oberhumer Markus)
Message-Id: <199607180329.FAA17280@c210.edvz.uni-linz.ac.at>
Subject: patch for stubedit.c
To: djgpp-workers AT delorie DOT com (djgpp-workers)
Date: Thu, 18 Jul 1996 05:29:11 -0200 (MET DST)
Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at

===============================================================================
Markus F.X.J. Oberhumer <markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at>

Subject: patch for stubedit.c
To: djgpp-workers AT delorie DOT com
===============================================================================

Trivial patch for src/stub/stubedit.c - argument to printf is missing
which causes a SIGSEGV on my machine.

Why are the stub utilities not compiled with '-Wall' ?



*** stubedit.org	Wed Jan 11 08:46:54 1995
--- stubedit.c	Thu Jul 18 04:25:36 1996
***************
*** 26,34 ****
    }
  
!   fseek(f, 512L, 0);
!   fread(test_magic, 16, 1, f);
!   if (memcmp(test_magic, "go32stub", 8) != 0)
    {
!     printf("Error: %s is not a go32 v2.0 or higher stub\n");
      exit(1);
    }
--- 26,34 ----
    }
  
!   if (fseek(f, 512L, 0) != 0 ||
!       fread(test_magic, 16, 1, f) != 1 ||
!       memcmp(test_magic, "go32stub", 8) != 0)
    {
!     printf("Error: %s is not a go32 v2.0 or higher stub\n", filename);
      exit(1);
    }

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019