mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* ext.c (regex_check_type): Fix previous change.
This commit is contained in:
parent
620308c65f
commit
7e3f8b9d87
@ -1,5 +1,7 @@
|
||||
2003-06-25 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* ext.c (regex_check_type): Fix previous change.
|
||||
|
||||
* ext.c (regex_check_type): Strip tab(s) after "filename:" in
|
||||
file output.
|
||||
|
||||
|
@ -419,10 +419,9 @@ regex_check_type (char *filename, int file_len, char *ptr, int *have_type)
|
||||
if (islocal) {
|
||||
if (!strncmp (content_string, filename, file_len)) {
|
||||
/* Skip "filename: " */
|
||||
content_shift = file_len;
|
||||
if (content_string[content_shift] == ':') {
|
||||
content_shift++;
|
||||
/* Solaris' file prints tab after ':' */
|
||||
/* Solaris' file prints tab(s) after ':' */
|
||||
for (content_shift++;
|
||||
content_string[content_shift] == ' '
|
||||
|| content_string[content_shift] == '\t';
|
||||
|
Loading…
Reference in New Issue
Block a user