From: Aleš Křenek Date: Thu, 13 Oct 2005 18:54:31 +0000 (+0000) Subject: fix in fb_from_db X-Git-Tag: glite-jp-client_R_1_0_0~55 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4201181915ad84359a2e9a8d764e67e2eaa9644d;p=jra1mw.git fix in fb_from_db --- diff --git a/org.glite.jp.common/src/attr.c b/org.glite.jp.common/src/attr.c index b50efac..47c2891 100644 --- a/org.glite.jp.common/src/attr.c +++ b/org.glite.jp.common/src/attr.c @@ -79,12 +79,12 @@ int fb_from_db(void *ctx,const char *str,glite_jp_attrval_t *attr) switch (str[0]) { case 'B': attr->value = malloc(osize = strlen(str) * 3/4 + 4); - attr->size = base64_decode(str,attr->value+2,osize); + attr->size = base64_decode(str,str+2,osize); assert(attr->size >= 0); attr->binary = 1; break; case 'S': - attr->value = strdup(attr->value + 2); + attr->value = strdup(str + 2); attr->size = 0; attr->binary = 0; break;