Fixed printf format errors. Didn't fix gross homemade varargs function

Write().  Pointers are passed to it as longs, but it expects them to
be passed as ints.  The alpha non-fixes made this worse.
This commit is contained in:
bde 1998-06-30 18:58:28 +00:00
parent 70c240a71b
commit 7654f002ea

View File

@ -123,7 +123,7 @@ Write(type, ship, isstr, a, b, c, d)
{
if (isstr)
(void) sprintf(sync_bp, "%d %d %d %s\n",
type, ship->file->index, isstr, a);
type, ship->file->index, isstr, (char *)a);
else
(void) sprintf(sync_bp, "%d %d %d %d %d %d %d\n",
type, ship->file->index, isstr, a, b, c, d);