]> git.marmaro.de Git - mmh/commitdiff
* sbr/fmt_scan.c:PUTSF() Fix an off by one formatting issue.
authorJosh Bressers <josh@bress.net>
Sun, 15 Jan 2006 02:52:12 +0000 (02:52 +0000)
committerJosh Bressers <josh@bress.net>
Sun, 15 Jan 2006 02:52:12 +0000 (02:52 +0000)
sbr/fmt_scan.c

index 4921854610200f384f90c36160f926fa816aa637..59e1c94110c5fcce184be912aeed1a8a84eba1b3 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;