* sbr/fmt_scan.c:PUTSF() Fix an off by one formatting issue.
[mmh] / sbr / fmt_scan.c
index 4921854..59e1c94 100644 (file)
@@ -133,6 +133,7 @@ char * PUTSF(char *cp, char *str, unsigned int wid, char fill) {
         for (j = term_len ; j <= wid ; j++) {
             *(cp + i++) = fill;
         }
+        i--;
     }
 
     return cp + i;