Fix web server segfault when displaying 3705s

This commit is contained in:
Jürgen Winkelmann
2015-03-22 11:27:46 -08:00
committed by Fish (David B. Trout)
parent 152ed99a57
commit 76b31f5e21

View File

@@ -1608,7 +1608,8 @@ static int commadpt_init_handler (DEVBLK *dev, int argc, char *argv[])
static void commadpt_query_device (DEVBLK *dev, char **class,
int buflen, char *buffer)
{
*class = "LINE";
BEGIN_DEVICE_CLASS_QUERY( "LINE", dev, class, buflen, buffer );
snprintf(buffer,buflen-1,"Read count=%d, Write count=%d IO[%" I64_FMT "u]",
dev->commadpt->read_ccw_count, dev->commadpt->write_ccw_count, dev->excps );
}