Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/less/less
Module Name: src
Committed By: wiz
Date: Thu Aug 26 01:29:20 UTC 2004
Modified Files:
src/usr.bin/less/less: line.c
Log Message:
>From OpenBSD:
revision 1.7
date: 2004/04/08 15:18:28; author: millert; state: Exp; lines: +5 -7
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy(). Prevents excessive resource
usage when displaying very long lines. OK deraadt@, krw@ and otto@
Ok'd by mrg.
To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 src/usr.bin/less/less/line.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index