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 Content-Type: text =============================================================================== Markus F.X.J. Oberhumer 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); }