framebuf.c | 171 struct puffs_framebuf *newpb; local in function:puffs_framebuf_dup 173 newpb = puffs_framebuf_make(); 174 if (newpb == NULL) { 178 memcpy(newpb, pb, sizeof(struct puffs_framebuf)); 180 newpb->buf = NULL; 181 newpb->len = 0; 182 if (reservespace(newpb, 0, pb->maxoff) == -1) { 183 puffs_framebuf_destroy(newpb); 187 memcpy(newpb->buf, pb->buf, pb->maxoff); 188 newpb->istat = 0 [all...] |