summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-11-14 14:55:24 (GMT)
committerBrad King <brad.king@kitware.com>2001-11-14 14:55:24 (GMT)
commit17591cd515627e9ce00551955240dbe8c69a5baf (patch)
tree0566f89d087b54d1786a33a31bf2b507952ede82 /Source
parente7ac38077a179e54fab1000e3a119ee6ac88ca69 (diff)
downloadCMake-17591cd515627e9ce00551955240dbe8c69a5baf.zip
CMake-17591cd515627e9ce00551955240dbe8c69a5baf.tar.gz
CMake-17591cd515627e9ce00551955240dbe8c69a5baf.tar.bz2
ERR: Fixed compiler warning for gcc 3.0.
Diffstat (limited to 'Source')
-rw-r--r--Source/CursesDialog/form/frm_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CursesDialog/form/frm_driver.c b/Source/CursesDialog/form/frm_driver.c
index cc07b65..3e1fbb1 100644
--- a/Source/CursesDialog/form/frm_driver.c
+++ b/Source/CursesDialog/form/frm_driver.c
@@ -3809,7 +3809,8 @@ int set_field_buffer(FIELD * field, int buffer, const char * value)
p[s-value] = *s;
if (s < (value+len))
{
- p[s-value] = *s++;
+ int off = s-value;
+ p[off] = *s++;
s = p + (s-value);
}
else