File: patch

package info (click to toggle)
gri 2.12.27-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,060 kB
  • sloc: cpp: 36,667; sh: 4,197; lisp: 3,764; perl: 1,362; ansic: 1,046; makefile: 589
file content (28 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/src/read.cc b/src/read.cc
index 2d51696..91468fb 100644
--- a/src/read.cc
+++ b/src/read.cc
@@ -1544,7 +1544,7 @@ Grid height %ld disagrees with existing y-grid, which is %d high",
 			chop_into_data_words(inLine.getValue(), _word, &_nword, MAX_nword);
 			PUT_VAR("..words_in_dataline..", double(_nword));
 			if (end_of_data == eof_before_data || _nword == 0) {
-				char msg[100];
+				char msg[200];
 				sprintf(msg, "\
 `read grid data' encountered early blank-line or end-of-file while\n\
        trying to read line %d of grid data.", row + 1);
diff --git a/src/set.cc b/src/set.cc
index c886afe..e35575d 100644
--- a/src/set.cc
+++ b/src/set.cc
@@ -1979,8 +1979,8 @@ set_image_rangeCmd()
 		if (word_is(3, "from") && word_is(4, "grid")) {
 			bool first = true;
 			double min_val, max_val;
-			for (int j = 0; j < _num_ymatrix_data; j++) {
-				for (int i = 0; i < _num_xmatrix_data; i++) {
+			for (unsigned int j = 0; j < _num_ymatrix_data; j++) {
+				for (unsigned int i = 0; i < _num_xmatrix_data; i++) {
 					double f = _f_xy(i, j);
 					if (!gr_missing(f)) {
 						if (first) {