Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 23249
Collapse All | Expand All

(-)rpmoffset.c (+5 lines)
Lines 16-23 Link Here
16
{
16
{
17
        char *buff = malloc(RPMBUFSIZ),*eb,*p;
17
        char *buff = malloc(RPMBUFSIZ),*eb,*p;
18
        for (p = buff, eb = buff + read(0,buff,RPMBUFSIZ); p < eb; p++)
18
        for (p = buff, eb = buff + read(0,buff,RPMBUFSIZ); p < eb; p++)
19
		{
19
                if (*p == '\037' && p[1] == '\213' && p[2] == '\010')
20
                if (*p == '\037' && p[1] == '\213' && p[2] == '\010')
20
                        printf("%d\n",p - buff),
21
                        printf("%d\n",p - buff),
21
                        exit(0);
22
                        exit(0);
23
				if (*p == 'B' && p[1] == 'Z' && p[2] == 'h' )
24
                        printf("%d\n",p - buff),
25
                        exit(0);
26
		}
22
        exit(1);
27
        exit(1);
23
}
28
}

Return to bug 23249