From: František Dvořák Date: Fri, 30 Jul 2010 17:51:39 +0000 (+0000) Subject: Don't overwrite detailed error message. X-Git-Tag: glite-lb-logger_R_2_1_8_1~7 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=02140c51ac97c6378945159bc5975128686dd137;p=jra1mw.git Don't overwrite detailed error message. --- diff --git a/org.glite.lb.logger/src/il_error.c b/org.glite.lb.logger/src/il_error.c index b9a5647..3b8a86c 100644 --- 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);