fix in fb_from_db
authorAleš Křenek <ljocha@ics.muni.cz>
Thu, 13 Oct 2005 18:54:31 +0000 (18:54 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Thu, 13 Oct 2005 18:54:31 +0000 (18:54 +0000)
org.glite.jp.common/src/attr.c

index b50efac..47c2891 100644 (file)
@@ -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;