From 23a3d4861146dfb6316c4f649e47134b7f59ff44 Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Wed, 10 Jun 2015 16:08:22 -0500 Subject: [PATCH] This closes #201 --- SAM.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SAM.cpp b/SAM.cpp index 971ed45e..7de1a8a8 100644 --- a/SAM.cpp +++ b/SAM.cpp @@ -101,6 +101,9 @@ namespace client if (separator) { separator++; + char *eol = strchr (separator, '\n'); + if (eol) + *eol = 0; std::map params; ExtractParams (separator, params); auto it = params.find (SAM_PARAM_MAX);