diff options
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r-- | coreutils/uudecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index b298fcb95..3f1227306 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -110,10 +110,10 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv) | |||
110 | FILE *dst_stream; | 110 | FILE *dst_stream; |
111 | int mode; | 111 | int mode; |
112 | 112 | ||
113 | if (strncmp(line, "begin-base64 ", 13) == 0) { | 113 | if (is_prefixed_with(line, "begin-base64 ")) { |
114 | line_ptr = line + 13; | 114 | line_ptr = line + 13; |
115 | decode_fn_ptr = read_base64; | 115 | decode_fn_ptr = read_base64; |
116 | } else if (strncmp(line, "begin ", 6) == 0) { | 116 | } else if (is_prefixed_with(line, "begin ")) { |
117 | line_ptr = line + 6; | 117 | line_ptr = line + 6; |
118 | decode_fn_ptr = read_stduu; | 118 | decode_fn_ptr = read_stduu; |
119 | } else { | 119 | } else { |