[BACK]Return to term.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term.c between version 1.125 and 1.126

version 1.125, 2009/11/12 05:50:12 version 1.126, 2009/11/12 05:58:30
Line 14 
Line 14 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
   #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
 #include <stdio.h>  #include <stdio.h>
Line 527  buffera(struct termp *p, const char *word, size_t sz)
Line 529  buffera(struct termp *p, const char *word, size_t sz)
         if (p->col + sz >= p->maxcols)          if (p->col + sz >= p->maxcols)
                 adjbuf(p, p->col + sz);                  adjbuf(p, p->col + sz);
   
         memcpy(&p->buf[p->col], word, sz);          memcpy(&p->buf[(int)p->col], word, sz);
         p->col += sz;          p->col += sz;
 }  }
   
Line 539  bufferc(struct termp *p, char c)
Line 541  bufferc(struct termp *p, char c)
         if (p->col + 1 >= p->maxcols)          if (p->col + 1 >= p->maxcols)
                 adjbuf(p, p->col + 1);                  adjbuf(p, p->col + 1);
   
         p->buf[p->col++] = c;          p->buf[(int)p->col++] = c;
 }  }
   
   

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.126

CVSweb