summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-08 14:49:31 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-08 14:49:31 +0000
commit0be9bd0b8324e6008c0aa952ff2b5361c2cc2bd4 (patch)
treeea8f88ecf871263f972d1ba5fa9c14dc3f755338 /apps
parent81d19cfe95a72f262d56cc7a899a4432a3727abe (diff)
downloadATCD-0be9bd0b8324e6008c0aa952ff2b5361c2cc2bd4.tar.gz
ChangeLogTag:Fri Dec 7 07:57:12 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'apps')
-rw-r--r--apps/JAWS/ChangeLog6
-rw-r--r--apps/JAWS/clients/Caching/http_client.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/apps/JAWS/ChangeLog b/apps/JAWS/ChangeLog
index ea1590cf3de..e75cc59c33e 100644
--- a/apps/JAWS/ChangeLog
+++ b/apps/JAWS/ChangeLog
@@ -1,3 +1,9 @@
+Thu Dec 6 09:00:31 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
+
+ * clients/Caching/http_client.cpp (main): Make sure to remove the
+ trailing '\n' so the example works properly. Thanks to Andrey
+ Shkinev <andreyshkinev@rogers.com> for reporting this.
+
Wed Nov 14 16:21:46 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
* clients/Blobby/Blob.{h,cpp},
diff --git a/apps/JAWS/clients/Caching/http_client.cpp b/apps/JAWS/clients/Caching/http_client.cpp
index 9238ace3194..6022cb289f2 100644
--- a/apps/JAWS/clients/Caching/http_client.cpp
+++ b/apps/JAWS/clients/Caching/http_client.cpp
@@ -39,6 +39,12 @@ main (int, char *[])
{
char *s = buf;
+ // get rid of trailing '\n'
+ int len = ACE_OS::strlen (s);
+
+ if (len > 0 && s[len - 1] == '\n')
+ s[len - 1] = 0;
+
while (isspace (*s))
s++;