1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 10_id3v1_zeropadding.dpatch by <sm17hs@gmail.com>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Use zero padding instead of space padding for ID3V1 fields
6 ## DP: (as requested by http://id3lib.sourceforge.net/id3/id3v1.html).
9 diff -urNad libid3tag-0.15
.1b~
/render.c libid3tag-0.15
.1b
/render.c
10 --- libid3tag-0.15
.1b~
/render.c
2004-01-23 10:41:32.000000000 +0100
11 +++ libid3tag-0.15
.1b
/render.c
2009-11-09 17:17:48.000000000 +0100
16 - while (*ucs4
&& end
- data
> 0) {
17 + while (*ucs4
&& end
- data
> 0)
20 - if (data
[-1] == '\n')
25 - while (end
- data
> 0)
30 - return id3_latin1_serialize
(ptr
, padded
, 0);
31 + id3_latin1_serialize
(ptr
, padded
, 0);
34 + id3_render_padding
(ptr
, 0, end
- data
);