Package: dadadodo / 1.04-4

Metadata

Package Version Patches format
dadadodo 1.04-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Make dadadodo 8bit clean.patch | (download)

dadadodo.c | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 [patch] make dadadodo 8bit clean


0002 Add a w option to change the width of the output.patch | (download)

dadadodo.c | 35 33 + 2 - 0 !
1 file changed, 33 insertions(+), 2 deletions(-)

 [patch] add a -w option to change the width of the output

I've been getting amusing results from using dadadodo in conjunction
with some of the text-output hacks in xscreensaver, but dadadodo will
only output 72-columns wide output, which will wrap in bad places in
the hacks that use smaller widths. This patch adds a command-line
option to change the width of the output, like --cols on ljlatest.

0003 Makefile Respect CFLAGS properly.patch | (download)

Makefile | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [patch] makefile: respect cflags properly

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>

0004 Fix a buffer overrun during file read.patch | (download)

files.c | 2 1 + 1 - 0 !
generate.c | 7 6 + 1 - 0 !
2 files changed, 7 insertions(+), 2 deletions(-)

 [patch] fix a buffer overrun during file read

In read_dadadodo_file() only n * sizeof(int) bytes of memory was
allocated to a buffer, and later on, we tried to access that same
buffer as if it was an array of longs, which obviously overflowed.

While there, also fixed another crash we could run into later on, by
skipping words that have a count of 0. This latter would probably need
to get addressed some other way, to skip these words entirely, but for
now, this will do.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>