From 26caf9560e7fd07cc78b02519f7fa973eee6d1c2 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Tue, 3 Sep 2002 07:29:42 +0000 Subject: [PATCH] Fixed tail import into SMB --- goldlib/gmb3/gmosmb1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goldlib/gmb3/gmosmb1.cpp b/goldlib/gmb3/gmosmb1.cpp index 7d5304e..8bbe09d 100644 --- a/goldlib/gmb3/gmosmb1.cpp +++ b/goldlib/gmb3/gmosmb1.cpp @@ -757,7 +757,7 @@ void SMBArea::save_hdr(int mode, gmsg* msg) l = ftell(data->sdt_fp); fwrite(sbody-2, SDT_BLOCK_LEN, smb_datblocks(bodylen), data->sdt_fp); if(taillen) { - fseek(data->sdt_fp, l+bodylen, SEEK_SET); + fseek(data->sdt_fp, l+bodylen+2, SEEK_SET); *(ushort *)(stail-2) = XLAT_NONE; fwrite(stail-2, SDT_BLOCK_LEN, smb_datblocks(taillen), data->sdt_fp); }