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:
Bruce Evans 1998-06-30 18:58:28 +00:00
parent e81c798e2b
commit 5d34c3e0f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37307

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);