diff options
Diffstat (limited to 'src/fr-command-ar.c')
-rw-r--r-- | src/fr-command-ar.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fr-command-ar.c b/src/fr-command-ar.c index e1397be..af767ca 100644 --- a/src/fr-command-ar.c +++ b/src/fr-command-ar.c @@ -102,15 +102,15 @@ ar_get_last_field (const char *line, while ((field_n > 0) && (*f_end != 0)) { if (*f_end == ' ') { field_n--; - if (field_n != 0) { - while ((*f_end == ' ') && (*f_end != *line)) - f_end++; + if (field_n == 1) f_start = f_end; - } - } else - f_end++; + } + f_end++; } + if (*f_start == ' ') + f_start++; + return g_strdup (f_start); } |