--- freem/src/ssvn_device.c 2025/01/19 02:04:04 1.1 +++ freem/src/ssvn_device.c 2025/03/09 19:50:47 1.4 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * ssvn_device.c - * ^$DEVICE ssv + * $Id: ssvn_device.c,v 1.4 2025/03/09 19:50:47 snw Exp $ + * ^$DEVICE ssvn * * - * Author: Serena Willis + * Author: Serena Willis * Copyright (C) 1998 MUG Deutschland - * Copyright (C) 2020 Coherent Logic Development LLC + * Copyright (C) 2020, 2025 Coherent Logic Development LLC * * * This file is part of FreeM. @@ -197,7 +185,7 @@ void ssvn_device(short action, char *key break; } else if (strcmp (r->subscripts[1], "NAME") == 0) { - sprintf (data, dev[channel]); + sprintf (data, "%s", dev[channel]); break; } else if (strcmp (r->subscripts[1], "TYPE") == 0) { @@ -223,7 +211,7 @@ void ssvn_device(short action, char *key fstat (fd, &s); siz = s.st_size; - sprintf (data, "%ld\201", siz); + sprintf (data, "%ld\201", (long) siz); break;