diff options
author | Brad King <brad.king@kitware.com> | 2001-11-14 14:55:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-11-14 14:55:24 (GMT) |
commit | 17591cd515627e9ce00551955240dbe8c69a5baf (patch) | |
tree | 0566f89d087b54d1786a33a31bf2b507952ede82 /Source/CursesDialog | |
parent | e7ac38077a179e54fab1000e3a119ee6ac88ca69 (diff) | |
download | CMake-17591cd515627e9ce00551955240dbe8c69a5baf.zip CMake-17591cd515627e9ce00551955240dbe8c69a5baf.tar.gz CMake-17591cd515627e9ce00551955240dbe8c69a5baf.tar.bz2 |
ERR: Fixed compiler warning for gcc 3.0.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/form/frm_driver.c | 3 |
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 |