From 4201181915ad84359a2e9a8d764e67e2eaa9644d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Thu, 13 Oct 2005 18:54:31 +0000 Subject: [PATCH] fix in fb_from_db --- org.glite.jp.common/src/attr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.8.2.3