Skip to content

Commit

Permalink
audit_log_untrustedstring() warning fix
Browse files Browse the repository at this point in the history
kernel/audit.c: In function `audit_log_untrustedstring':
kernel/audit.c:736: warning: comparison is always false due to limited range of data type

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Andrew Morton authored and Unknown committed Apr 29, 2005
1 parent 83c7d09 commit 81b7854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ void audit_log_hex(struct audit_buffer *ab, const unsigned char *buf, size_t len

void audit_log_untrustedstring(struct audit_buffer *ab, const char *string)
{
const char *p = string;
const unsigned char *p = string;

while (*p) {
if (*p == '"' || *p == ' ' || *p < 0x20 || *p > 0x7f) {
Expand Down

0 comments on commit 81b7854

Please sign in to comment.