=================================================================== RCS file: /cvs/funnyos/dev/fcons/fcons.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- funnyos/dev/fcons/fcons.c 2007/10/16 22:41:36 1.2 +++ funnyos/dev/fcons/fcons.c 2007/10/29 12:23:06 1.3 @@ -1,5 +1,5 @@ /* - * $Id: fcons.c,v 1.2 2007/10/16 21:41:36 init Exp $ + * $Id: fcons.c,v 1.3 2007/10/29 12:23:06 init Exp $ */ #include #include @@ -33,6 +33,9 @@ { struct fcons_dd *ddp = self->dv_devdata; + /* link our parent's dv_aux (fcons_handle) to us */ + ddp->fd_fh = self->dv_parent->dv_aux; + ddp->fd_currow = 0; ddp->fd_curcol = 0; @@ -52,7 +55,7 @@ fcons_putchar(void *ddp, char ch) { struct fcons_dd *fdp = ddp; - struct fcons_handle *fhp = &fdp->fd_fh; + struct fcons_handle *fhp = fdp->fd_fh; /* if we reach screen width */ if (fdp->fd_curcol == (FCONS_WIDTH - 1)) {