summaryrefslogtreecommitdiff
path: root/dmake/dag.c
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-04-20 10:58:53 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-04-20 10:58:53 +0000
commit6e87466b32f545a885a4ba31fecde90931c2e8ce (patch)
treef73ecae5ff8db25d6a7d0b8440895e6ace041d2d /dmake/dag.c
parent136fef54cfedb8108c041fa69cb33d4cf89b3d3f (diff)
INTEGRATION: CWS dmake43p01 (1.4.6); FILE MERGED
2005/04/11 21:13:05 vq 1.4.6.3: #i47137# Elaborate a comment. 2005/03/14 03:21:58 vq 1.4.6.2: #i37053# Fix continuation char handling. 2004/11/12 03:45:08 vq 1.4.6.1: #i37053# dmake line continuation fix.
Diffstat (limited to 'dmake/dag.c')
-rw-r--r--dmake/dag.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/dmake/dag.c b/dmake/dag.c
index 1db61350a13b..eb0fe54868cb 100644
--- a/dmake/dag.c
+++ b/dmake/dag.c
@@ -1,6 +1,6 @@
/* $RCSfile: dag.c,v $
--- $Revision: 1.4 $
--- last change: $Author: rt $ $Date: 2004-09-08 16:05:07 $
+-- $Revision: 1.5 $
+-- last change: $Author: hr $ $Date: 2006-04-20 11:58:53 $
--
-- SYNOPSIS
-- Routines to construct the internal dag.
@@ -48,8 +48,11 @@ HASHPTR hp;
tvalue = atoi(hp->ht_value);
if( hp->MV_IVAR == &Buffer_size ) {
- /* If Buffer_size is modified then make sure you change the
- * size of the real buffer as well. */
+ /* If Buffer_size (MAXLINELENGTH) is modified then make sure
+ * you change the size of the real buffer as well. As the
+ * value will at least be BUFSIZ this might lead to the
+ * situation that the (string) value of MAXLINELENGTH is
+ * smaller than the integer value. */
tvalue = (tvalue < (BUFSIZ-2)) ? BUFSIZ : tvalue+2;
if( Buffer_size == tvalue ) break;
if( Buffer ) FREE(Buffer);