X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=common%2Fdumprmt.c;h=129ce208c4c26d8ce9e82b5ec5a89f2caa1d9d60;hp=4d570fdd87eabdfd5f73fa991cc360e098a104cb;hb=88ac410d747e12ed2c1edd1ed0fdab994de71cf9;hpb=5fb6554eaf09f19f4421fdb36e04a6b6de082fe9 diff --git a/common/dumprmt.c b/common/dumprmt.c index 4d570fd..129ce20 100644 --- a/common/dumprmt.c +++ b/common/dumprmt.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: dumprmt.c,v 1.20 2002/01/25 15:08:59 stelian Exp $"; + "$Id: dumprmt.c,v 1.21 2002/05/21 15:48:46 stelian Exp $"; #endif /* not lint */ #include @@ -273,11 +273,11 @@ okname(const char *cp0) } int -rmtopen(const char *tape, int mode) +rmtopen(const char *tape, const char *mode) { char buf[MAXPATHLEN]; - (void)snprintf(buf, sizeof (buf), "O%s\n%d\n", tape, mode); + (void)snprintf(buf, sizeof (buf), "O%s\n%s\n", tape, mode); rmtstate = TS_OPEN; return (rmtcall(tape, buf)); }