summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-04-28 19:58:06 +0000
committerTheodore Tso <tytso@mit.edu>1995-04-28 19:58:06 +0000
commit7ed6f9b1ae88478c5c775de92fc7bdff3db4205c (patch)
tree5990345f642a468ad937a461fb5edd70bd85555b /src/util
parent1cc8ec19e5214a20cc6d21ce70bee4082c6bb6a7 (diff)
downloadkrb5-7ed6f9b1ae88478c5c775de92fc7bdff3db4205c.tar.gz
krb5-7ed6f9b1ae88478c5c775de92fc7bdff3db4205c.tar.xz
krb5-7ed6f9b1ae88478c5c775de92fc7bdff3db4205c.zip
Don't try to strip an empty line. This causes memory reference error
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5630 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
-rw-r--r--src/util/profile/ChangeLog5
-rw-r--r--src/util/profile/prof_parse.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 3ff592e710..aa0d55a5e9 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr 28 15:54:40 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * prof_parse.c (strip_line): Don't try to strip an empty line.
+ This causes memory reference error.
+
Thu Apr 27 20:26:48 1995 <tytso@rsx-11.mit.edu>
* Makefile.in (clean-unix): Remove profile.h and test_profile
diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c
index 794e982667..1e281e0b2c 100644
--- a/src/util/profile/prof_parse.c
+++ b/src/util/profile/prof_parse.c
@@ -32,7 +32,7 @@ void strip_line(line)
{
char *p;
- while (1) {
+ while (*line) {
p = line + strlen(line) - 1;
if ((*p == '\n') || (*p == '\r'))
*p = 0;