|
@@ -179,8 +179,8 @@ int main(int argc, char *argv[])
|
|
}
|
|
}
|
|
/* ----- */
|
|
/* ----- */
|
|
dem.fd = Rast_open_old(base->answer, "");
|
|
dem.fd = Rast_open_old(base->answer, "");
|
|
- snprintf(out.name, GNAME_MAX - 1, "%s.%s", output->answer,
|
|
|
|
- input->answers[i]);
|
|
|
|
|
|
+ G_snprintf(out.name, GNAME_MAX - 1, "%s.%s", output->answer,
|
|
|
|
+ input->answers[i]);
|
|
out.fd = Rast_open_new(out.name, DCELL_TYPE);
|
|
out.fd = Rast_open_new(out.name, DCELL_TYPE);
|
|
out.rast = Rast_allocate_buf(out.type);
|
|
out.rast = Rast_allocate_buf(out.type);
|
|
band.rast = Rast_allocate_buf(band.type);
|
|
band.rast = Rast_allocate_buf(band.type);
|