Remove whitespace from simultaneous use messages
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 9 Feb 2015 20:39:07 +0000 (15:39 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 9 Feb 2015 20:39:07 +0000 (15:39 -0500)
src/main/auth.c

index 745e1e7..541a1d3 100644 (file)
@@ -661,14 +661,10 @@ authenticate:
                        }
                        if (!mpp_ok){
                                if (check_item->vp_integer > 1) {
-                                       snprintf(umsg, sizeof(umsg),
-                                                "\r\n%s (%d)\r\n\n",
-                                                main_config.denied_msg,
-                                                (int)check_item->vp_integer);
+                                       snprintf(umsg, sizeof(umsg), "%s (%u)", main_config.denied_msg,
+                                                check_item->vp_integer);
                                } else {
-                                       snprintf(umsg, sizeof(umsg),
-                                                "\r\n%s\r\n\n",
-                                                main_config.denied_msg);
+                                       strlcpy(umsg, main_config.denied_msg, sizeof(umsg));
                                }
 
                                request->reply->code = PW_CODE_ACCESS_REJECT;