diff options
| author | Don Lewis <truckman@FreeBSD.org> | 1999-05-15 01:08:27 +0000 |
|---|---|---|
| committer | Don Lewis <truckman@FreeBSD.org> | 1999-05-15 01:08:27 +0000 |
| commit | 02d8c2160f6a867150071a7c0ee4df945c171f56 (patch) | |
| tree | be04ca7837be9e71c7e51b11b90b9b8a03ef92d0 | |
| parent | cc5ced8531d7e567605ee24bb0c1f87302348074 (diff) | |
Notes
| -rw-r--r-- | lib/libutil/login_class.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c index 3887541a409e..15b16d384d83 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -21,7 +21,7 @@ * * High-level routines relating to use of the user capabilities database * - * $Id: login_class.c,v 1.9 1998/07/28 01:30:16 ache Exp $ + * $Id$ */ #include <stdio.h> @@ -163,7 +163,7 @@ substvar(char * var, const struct passwd * pwd, int hlen, int pch, int nlen) while (*(p += strcspn(p, "~$")) != '\0') { int l = strlen(p); - if (p > var && *(p-1) == '\\') /* Escaped: */ + if (p > np && *(p-1) == '\\') /* Escaped: */ memmove(p - 1, p, l + 1); /* Slide-out the backslash */ else if (*p == '~') { int v = pch && *(p+1) != '/'; /* Avoid double // */ |
