Commit d1d24b60 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_output_float): Fall back to using sprintf if snprintf isn't

	available.
parent 8e494890
/*
* $Id: prot-a-output.c,v 0.63 2003/07/24 22:05:03 ceder Exp $
* $Id: prot-a-output.c,v 0.64 2003/07/31 07:33:25 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -70,7 +70,12 @@ prot_a_output_float(Connection *fp,
{
char buf[80];
#ifdef HAVE_SNPRINTF
snprintf(buf, sizeof(buf), " %g", v);
#else
sprintf(buf, " %g", v);
#endif
isc_puts(buf, fp->isc_session);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment