Mail Archives: djgpp-workers/1996/07/17/23:39:24
===============================================================================
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 -