Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libform set_field_opts and field_opts_on were both using...
details: https://anonhg.NetBSD.org/src/rev/4253e6ada897
branches: trunk
changeset: 534882:4253e6ada897
user: blymn <blymn%NetBSD.org@localhost>
date: Mon Aug 05 12:43:44 2002 +0000
description:
set_field_opts and field_opts_on were both using the wrong pointer
resulting in libform crashing if O_STATIC was set on the default field.
diffstat:
lib/libform/field.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (35 lines):
diff -r 7d5becde6883 -r 4253e6ada897 lib/libform/field.c
--- a/lib/libform/field.c Mon Aug 05 11:21:29 2002 +0000
+++ b/lib/libform/field.c Mon Aug 05 12:43:44 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: field.c,v 1.19 2002/08/03 14:34:22 blymn Exp $ */
+/* $NetBSD: field.c,v 1.20 2002/08/05 12:43:44 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
* (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -123,9 +123,9 @@
return E_CURRENT;
if ((options & O_STATIC) == O_STATIC) {
- for (i = 0; i < field->nbuf; i++) {
- if (field->buffers[i].length > field->cols)
- field->buffers[i].string[field->cols] = '\0';
+ for (i = 0; i < fp->nbuf; i++) {
+ if (fp->buffers[i].length > fp->cols)
+ fp->buffers[i].string[fp->cols] = '\0';
}
}
@@ -158,9 +158,9 @@
return E_CURRENT;
if ((options & O_STATIC) == O_STATIC) {
- for (i = 0; i < field->nbuf; i++) {
- if (field->buffers[i].length > field->cols)
- field->buffers[i].string[field->cols] = '\0';
+ for (i = 0; i < fp->nbuf; i++) {
+ if (fp->buffers[i].length > fp->cols)
+ fp->buffers[i].string[fp->cols] = '\0';
}
}
Home |
Main Index |
Thread Index |
Old Index