summaryrefslogtreecommitdiff
path: root/src/devices/grotty
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-02-15 16:36:38 +0000
committerwlemb <wlemb>2003-02-15 16:36:38 +0000
commit3b144c5915edcc49b59e82006562256a720f1f78 (patch)
tree612b87e162e2d8e087d70ee7de2a2921ca37de75 /src/devices/grotty
parent5ea4de444fc02cbd780bb2ffc0274bfad434f6ad (diff)
downloadgroff-3b144c5915edcc49b59e82006562256a720f1f78.tar.gz
* src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
to `dummy'.
Diffstat (limited to 'src/devices/grotty')
-rw-r--r--src/devices/grotty/tty.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/grotty/tty.cc b/src/devices/grotty/tty.cc
index 1f376771..13a0b015 100644
--- a/src/devices/grotty/tty.cc
+++ b/src/devices/grotty/tty.cc
@@ -245,20 +245,20 @@ int tty_printer::tty_color(unsigned int r,
tty_printer::tty_printer(const char *device) : cached_v(0)
{
is_utf8 = !strcmp(device, "utf8");
- char *dummy;
+ char dummy;
// black, white
- (void)tty_color(0, 0, 0, dummy, 0);
+ (void)tty_color(0, 0, 0, &dummy, 0);
(void)tty_color(color::MAX_COLOR_VAL,
color::MAX_COLOR_VAL,
- color::MAX_COLOR_VAL, dummy, 7);
+ color::MAX_COLOR_VAL, &dummy, 7);
// red, green, blue
- (void)tty_color(color::MAX_COLOR_VAL, 0, 0, dummy, 1);
- (void)tty_color(0, color::MAX_COLOR_VAL, 0, dummy, 2);
- (void)tty_color(0, 0, color::MAX_COLOR_VAL, dummy, 4);
+ (void)tty_color(color::MAX_COLOR_VAL, 0, 0, &dummy, 1);
+ (void)tty_color(0, color::MAX_COLOR_VAL, 0, &dummy, 2);
+ (void)tty_color(0, 0, color::MAX_COLOR_VAL, &dummy, 4);
// yellow, magenta, cyan
- (void)tty_color(color::MAX_COLOR_VAL, color::MAX_COLOR_VAL, 0, dummy, 3);
- (void)tty_color(color::MAX_COLOR_VAL, 0, color::MAX_COLOR_VAL, dummy, 5);
- (void)tty_color(0, color::MAX_COLOR_VAL, color::MAX_COLOR_VAL, dummy, 6);
+ (void)tty_color(color::MAX_COLOR_VAL, color::MAX_COLOR_VAL, 0, &dummy, 3);
+ (void)tty_color(color::MAX_COLOR_VAL, 0, color::MAX_COLOR_VAL, &dummy, 5);
+ (void)tty_color(0, color::MAX_COLOR_VAL, color::MAX_COLOR_VAL, &dummy, 6);
nlines = 66;
lines = new glyph *[nlines];
for (int i = 0; i < nlines; i++)