aboutsummaryrefslogtreecommitdiff
path: root/src/make_pixelmap.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-01-29 17:15:06 +0100
committerThomas White <taw@physics.org>2019-01-29 17:21:06 +0100
commit1fdbafbb687c32dc167a572a3048e32099720fde (patch)
tree7c2f71637cad9d11fce81cff35e94b24c0b2654c /src/make_pixelmap.c
parent83b4dbe4a0146da76fbb69fde213176d44e1a2ae (diff)
Fix some compiler warnings about string handling
Diffstat (limited to 'src/make_pixelmap.c')
-rw-r--r--src/make_pixelmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/make_pixelmap.c b/src/make_pixelmap.c
index b2e95a60..b5fed987 100644
--- a/src/make_pixelmap.c
+++ b/src/make_pixelmap.c
@@ -242,7 +242,7 @@ int main(int argc, char *argv[])
if ( output_file == NULL ) {
size_t len = strlen(input_file);
output_file = malloc(len+4);
- strncpy(output_file, input_file, len-1);
+ strcpy(output_file, input_file);
strip_extension(output_file);
strcat(output_file, ".h5");
}