M gnot/main.c => gnot/main.c +1 -1
@@ 7,7 7,7 @@
#include "ureg.h"
#include "init.h"
-#include <libng.h>
+#include <libg.h>
#include <gnot.h>
typedef struct Boot Boot;
M gnot/screen.c => gnot/screen.c +1 -1
@@ 7,7 7,7 @@
#include "ureg.h"
#include "../port/error.h"
-#include <libng.h>
+#include <libg.h>
#include <gnot.h>
#include "screen.h"
M pc/kbd.c => pc/kbd.c +2 -1
@@ 351,7 351,7 @@ kbdintr0(void)
c = kbtabesc1[c];
esc1 = 0;
if(!keyup)
- kbdputc(&kbdq, c);
+ goto dochar;
return 0;
} else if(esc2){
esc2--;
@@ 385,6 385,7 @@ kbdintr0(void)
/*
* normal character
*/
+dochar:
if(!(c & Spec)){
if(ctl)
c &= 0x1f;
M pc/main.c => pc/main.c +2 -1
@@ 220,7 220,8 @@ confinit(void)
conf.nsrv = 16*mul; /* was 32 */
conf.nbitmap = 512*mul;
conf.nbitbyte = conf.nbitmap*1024*screenbits();
- conf.nsubfont = 10*mul;
+ conf.nfont = 10*mul;
+ conf.nsubfont = 30*mul;
conf.nnoifc = 1;
conf.nnoconv = 32;
conf.nurp = 32;
M port/devbit.c => port/devbit.c +3 -3
@@ 7,7 7,7 @@
#include "devtab.h"
-#include <libng.h>
+#include <libg.h>
#include <gnot.h>
#include "screen.h"
@@ 1302,10 1302,10 @@ bitstring(GBitmap *bp, Point pt, GFont *f, uchar *p, long l, Fcode fc)
while(l > 0){
r = GSHORT(p);
- if(r >= NFCACHE+NFLOOK)
- error(Ebadblt);
p += 2;
l -= 2;
+ if(r >= NFCACHE+NFLOOK)
+ continue;
c = &f->cache[r];
if(!full){
rect.min.y = c->top;
M port/stip.c => port/stip.c +3 -4
@@ 175,7 175,9 @@ ipetheroput(Queue *q, Block *bp)
if(bp->type != M_DATA){
/* Allow one setting of the ip address */
- if(!Myip && streamparse("setip", bp)) {
+ if(streamparse("setip", bp)) {
+ if(strncmp(eve, u->p->user, sizeof(eve)) != 0)
+ error(Eperm);
ptr = bp->rptr;
Myip = ipparse((char *)ptr);
Netmyip[0] = (Myip>>24)&0xff;
@@ 187,9 189,6 @@ ipetheroput(Queue *q, Block *bp)
ptr++;
if(*ptr)
Mymask = ipparse((char *)ptr);
- /*
- * Temporary Until we understand real subnets
- */
Mynetmask = Mymask;
freeb(bp);
}
M ss/main.c => ss/main.c +1 -1
@@ 6,7 6,7 @@
#include "io.h"
#include "init.h"
-#include <libng.h>
+#include <libg.h>
#include <gnot.h>
uchar *intrreg;
M ss/screen.c => ss/screen.c +1 -1
@@ 6,7 6,7 @@
#include "io.h"
#include "../port/error.h"
-#include <libng.h>
+#include <libg.h>
#include <gnot.h>
#include "screen.h"