diff options
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r-- | miscutils/devfsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index d8730459b..6db0c7b05 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -1600,7 +1600,7 @@ int st_expr_expand(char *output, unsigned int length, const char *input, | |||
1600 | } | 1600 | } |
1601 | /* Someone else's home directory */ | 1601 | /* Someone else's home directory */ |
1602 | for (ptr = ++input; !isspace(ch) && (ch != '/') && (ch != '\0'); ch = *++ptr) | 1602 | for (ptr = ++input; !isspace(ch) && (ch != '/') && (ch != '\0'); ch = *++ptr) |
1603 | /* VOID */ ; | 1603 | /* VOID */; |
1604 | len = ptr - input; | 1604 | len = ptr - input; |
1605 | if (len >= sizeof tmp) | 1605 | if (len >= sizeof tmp) |
1606 | goto st_expr_expand_out; | 1606 | goto st_expr_expand_out; |
@@ -1679,7 +1679,7 @@ static const char *expand_variable(char *buffer, unsigned int length, | |||
1679 | if (ch != '{') { | 1679 | if (ch != '{') { |
1680 | /* Simple variable expansion */ | 1680 | /* Simple variable expansion */ |
1681 | for (ptr = input; isalnum(ch) || (ch == '_') || (ch == ':'); ch = *++ptr) | 1681 | for (ptr = input; isalnum(ch) || (ch == '_') || (ch == ':'); ch = *++ptr) |
1682 | /* VOID */ ; | 1682 | /* VOID */; |
1683 | len = ptr - input; | 1683 | len = ptr - input; |
1684 | if ((size_t)len >= sizeof tmp) | 1684 | if ((size_t)len >= sizeof tmp) |
1685 | goto expand_variable_out; | 1685 | goto expand_variable_out; |