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:
432cbed
)
Don't overwrite detailed error message.
author
František Dvořák
<valtri@civ.zcu.cz>
Fri, 30 Jul 2010 17:51:39 +0000
(17:51 +0000)
committer
František Dvořák
<valtri@civ.zcu.cz>
Fri, 30 Jul 2010 17:51:39 +0000
(17:51 +0000)
org.glite.lb.logger/src/il_error.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.logger/src/il_error.c
b/org.glite.lb.logger/src/il_error.c
index
b9a5647
..
3b8a86c
100644
(file)
--- a/
org.glite.lb.logger/src/il_error.c
+++ b/
org.glite.lb.logger/src/il_error.c
@@
-142,7
+142,11
@@
set_error(int code, long minor, char *msg)
case EDG_WLL_GSS_ERROR_HERRNO:
snprintf(err->msg, IL_ERR_MSG_LEN, "%s: %s", msg, hstrerror(errno));
break;
+
+ default:
+ strncpy(err->msg, msg, IL_ERR_MSG_LEN);
}
+ break;
default:
strncpy(err->msg, msg, IL_ERR_MSG_LEN);