Re: [PATCH 06/22] ide-tape: struct idetape_tape_t: remove unused members

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sergei Shtylyov
Date: Monday, September 22, 2008 - 6:25 am

Hello.

Borislav Petkov wrote:



    Late complaint but anyway... :-)


[...]


    It was wrong to call ide_fixstring() on unterminated strings and expecting 
them to become terminated strings after that; plus it was useless to add 2 
characters padding at the end. When these variables were the fields of 'struct 
ide_tape_obj', those bytes were 0 because of the variable of this type being a 
static array. When they became local variables, they got garbage bytes at the 
end which ide_fixdriveid() either honestly copied when compressing spaces or 
just left where they were...


    Should've rather changed the string format to print only N characters max...

MBR, Sergei
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[No subject], Borislav Petkov, (Mon Feb 4, 6:40 am)
[PATCH 03/22] ide-tape: remove unreachable code chunk, Borislav Petkov, (Mon Feb 4, 6:40 am)
[PATCH 10/22] ide-tape: shorten some function names, Borislav Petkov, (Mon Feb 4, 6:40 am)
[PATCH 11/22] ide-tape: remove atomic test/set macros, Borislav Petkov, (Mon Feb 4, 6:40 am)
[PATCH 13/22] ide-tape: remove struct idetape_id_gcw, Borislav Petkov, (Mon Feb 4, 6:40 am)
[PATCH 14/22] ide-tape: cleanup and fix comments, Borislav Petkov, (Mon Feb 4, 6:40 am)
[PATCH 16/22] ide-tape: include proper headers, Borislav Petkov, (Mon Feb 4, 6:40 am)
[PATCH 21/22] ide-tape: bump minor driver version, Borislav Petkov, (Mon Feb 4, 6:40 am)
ide-tape redux (was: Re:), Bartlomiej Zolnierki ..., (Mon Feb 4, 6:20 pm)
Re: [PATCH 02/22] ide-tape: remove struct idetape_read_pos ..., Bartlomiej Zolnierki ..., (Mon Feb 4, 6:23 pm)
Re: [PATCH 07/22] ide-tape: struct idetape_tape_t: shorten ..., Bartlomiej Zolnierki ..., (Mon Feb 4, 6:23 pm)
Re: [PATCH 14/22] ide-tape: cleanup and fix comments, Bartlomiej Zolnierki ..., (Mon Feb 4, 6:27 pm)
Re: [PATCH 20/22] ide-tape: cleanup the remaining codestyl ..., Bartlomiej Zolnierki ..., (Mon Feb 4, 6:27 pm)
Re: ide-tape redux (was: Re:), Borislav Petkov, (Tue Feb 5, 10:23 pm)
Re: ide-tape redux (was: Re:), Borislav Petkov, (Tue Feb 5, 10:27 pm)
Re: ide-tape redux (was: Re:), Bartlomiej Zolnierki ..., (Sat Feb 9, 9:25 am)
Re: ide-tape redux (was: Re:), Bartlomiej Zolnierki ..., (Sat Feb 9, 9:25 am)
Re: [PATCH 1/2] ide-tape: move all struct and other defs a ..., Bartlomiej Zolnierki ..., (Mon Feb 11, 3:12 pm)
Re: [PATCH 2/2] ide-tape: remove atomic test/set macros fo ..., Bartlomiej Zolnierki ..., (Mon Feb 11, 3:12 pm)
Re: [PATCH 06/22] ide-tape: struct idetape_tape_t: remove ..., Sergei Shtylyov, (Mon Sep 22, 6:25 am)