git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ee1828
)
fix in fb_from_db
author
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 13 Oct 2005 18:54:31 +0000
(18:54 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 13 Oct 2005 18:54:31 +0000
(18:54 +0000)
org.glite.jp.common/src/attr.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.common/src/attr.c
b/org.glite.jp.common/src/attr.c
index
b50efac
..
47c2891
100644
(file)
--- 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;