aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--libmpio/src/mpio.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d27d477..8aaaade 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-05-19 Markus Germeier <mager@tzi.de>
+ * libmpio/src/mpio.c (mpio_file_put_real):
+ fixed strncat bug found by Sergey. Thanks!
+
2003-04-30 Markus Germeier <mager@tzi.de>
* libmpio/src/ecc.c: cleaned up ECC code
diff --git a/libmpio/src/mpio.c b/libmpio/src/mpio.c
index f0843ae..133ac9c 100644
--- a/libmpio/src/mpio.c
+++ b/libmpio/src/mpio.c
@@ -1,5 +1,5 @@
/*
- * $Id: mpio.c,v 1.3 2003/04/27 12:08:21 germeier Exp $
+ * $Id: mpio.c,v 1.4 2003/05/19 17:30:58 germeier Exp $
*
* libmpio - a library for accessing Digit@lways MPIO players
* Copyright (C) 2002, 2003 Markus Germeier
@@ -683,7 +683,7 @@ mpio_file_put_real(mpio_t *m, mpio_mem_t mem, mpio_filename_t i_filename,
} else {
id3 = mpio_id3_do(m, i_filename, use_filename);
if (!id3)
- strncat(use_filename, i_filename, INFO_LINE);
+ strncpy(use_filename, i_filename, INFO_LINE);
if (stat((const char *)use_filename, &file_stat)!=0) {
debug("could not find file: %s\n", use_filename);
MPIO_ERR_RETURN(MPIO_ERR_FILE_NOT_FOUND);