[BACK]Return to seq.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / seq

Diff for /src/usr.bin/seq/seq.c between version 1.3 and 1.4

version 1.3, 2022/02/22 16:14:38 version 1.4, 2022/02/22 23:24:09
Line 195 
Line 195 
          * loop held true due to a rounding error and we still need to print           * loop held true due to a rounding error and we still need to print
          * 'last'.           * 'last'.
          */           */
         asprintf(&cur_print, fmt, cur);          if (asprintf(&cur_print, fmt, cur) == -1 ||
         asprintf(&last_print, fmt, last);              asprintf(&last_print, fmt, last) == -1)
                   err(1, "asprintf");
         if (strcmp(cur_print, last_print) == 0 && cur != last_shown_value) {          if (strcmp(cur_print, last_print) == 0 && cur != last_shown_value) {
                 if (cur != first)                  if (cur != first)
                     fputs(sep, stdout);                      fputs(sep, stdout);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4