Don't overwrite detailed error message.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Fri, 30 Jul 2010 17:51:39 +0000 (17:51 +0000)
committerFrantiš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

index b9a5647..3b8a86c 100644 (file)
@@ -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);