36 |
char *p; |
char *p; |
37 |
int type=0, current=0, total=0; |
int type=0, current=0, total=0; |
38 |
|
|
39 |
if( (p = strchr (args, ' ')) ) { |
if( (p = strchr (args, ' ')) != NULL ) { |
40 |
*p++ = 0; |
*p++ = 0; |
41 |
if (*p) { |
if (*p) { |
42 |
type = *(byte*)p; |
type = *(byte*)p; |
43 |
if( (p = strchr (p+1, ' ')) ) { |
if( (p = strchr (p+1, ' ')) != NULL ) { |
44 |
*p++ = 0; |
*p++ = 0; |
45 |
if( *p ) { |
if( *p ) { |
46 |
current = atoi (p); |
current = atoi (p); |
47 |
if( (p = strchr (p+1, ' ')) ) { |
if( (p = strchr (p+1, ' ')) != NULL ) { |
48 |
*p++ = 0; |
*p++ = 0; |
49 |
total = atoi (p); |
total = atoi (p); |
50 |
} |
} |
141 |
/* need some more things here */ |
/* need some more things here */ |
142 |
} |
} |
143 |
|
|
144 |
if( (parms = strstr( parms, "<GnupgKeyParms " )) |
if( (parms = strstr (parms, "<GnupgKeyParms " )) != NULL |
145 |
&& (s = strchr( parms, '>') ) |
&& (s = strchr (parms, '>')) != NULL |
146 |
&& (sx = strstr( parms, "format=\"internal\"" )) |
&& (sx = strstr( parms, "format=\"internal\"" )) |
147 |
&& sx < s |
&& sx < s |
148 |
&& (s2 = strstr( s+1, "</GnupgKeyParms>" )) ) { |
&& (s2 = strstr( s+1, "</GnupgKeyParms>" )) != NULL) { |
149 |
/* fixme: check that there are no control statements inside */ |
/* fixme: check that there are no control statements inside */ |
150 |
rc = gpgme_data_new_from_mem( &c->help_data_1, s + 1, s2 - s - 1, 1 ); |
rc = gpgme_data_new_from_mem( &c->help_data_1, s + 1, s2 - s - 1, 1 ); |
151 |
} |
} |