mirror of
https://github.com/obarthel/amiga-smbfs.git
synced 2025-12-08 14:58:35 +00:00
Small fixes for embarrassing bugs
The 'struct tm tm' declaration in convert_smb_date_time_to_tm() must be static, not auto. Seek mode decoding was off by one.
This commit is contained in:
@@ -523,7 +523,7 @@ print_smb_data(struct line_buffer * lb,int num_data_bytes_left,const unsigned ch
|
||||
static const struct tm *
|
||||
convert_smb_date_time_to_tm(unsigned short smb_date,unsigned short smb_time)
|
||||
{
|
||||
struct tm tm;
|
||||
static struct tm tm;
|
||||
|
||||
memset(&tm,0,sizeof(tm));
|
||||
|
||||
@@ -1743,17 +1743,17 @@ print_smb_contents(const struct smb_header * header,int command,enum smb_packet_
|
||||
|
||||
switch(mode)
|
||||
{
|
||||
case 1:
|
||||
case 0:
|
||||
|
||||
Printf(" Seek from the start of the file\n");
|
||||
break;
|
||||
|
||||
case 2:
|
||||
case 1:
|
||||
|
||||
Printf(" Seek from the current position\n");
|
||||
break;
|
||||
|
||||
case 3:
|
||||
case 2:
|
||||
|
||||
Printf(" Seek from the end of the file\n");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user