diff options
author | germeier <germeier> | 2003-05-19 17:30:57 +0000 |
---|---|---|
committer | germeier <germeier> | 2003-05-19 17:30:57 +0000 |
commit | 6b1f262a159b927b9d5cd7642a00c8ed59573fed (patch) | |
tree | d71dc5e098fbc01f92326b85ba7e361186fa8bc5 /libmpio | |
parent | 04c260ecee1ea4adb8503ac5d4d1de77ec6fa6f3 (diff) | |
download | mpiosh-6b1f262a159b927b9d5cd7642a00c8ed59573fed.tar.gz mpiosh-6b1f262a159b927b9d5cd7642a00c8ed59573fed.tar.bz2 mpiosh-6b1f262a159b927b9d5cd7642a00c8ed59573fed.zip |
fixed strncat bug found by Sergey. Thanks!
Diffstat (limited to 'libmpio')
-rw-r--r-- | libmpio/src/mpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |