Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/blenkernel/intern/sound.c2
-rw-r--r--source/blender/makesdna/DNA_sound_types.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 93b1ef379d8..e014b209e07 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -132,7 +132,7 @@ struct bSound* sound_new_file(struct Main *bmain, char* filename)
len--;
sound = alloc_libblock(&bmain->sound, ID_SO, filename+len);
- strcpy(sound->name, filename);
+ BLI_strncpy(sound->name, filename, FILE_MAX);
// XXX unused currently sound->type = SOUND_TYPE_FILE;
sound_load(bmain, sound);
diff --git a/source/blender/makesdna/DNA_sound_types.h b/source/blender/makesdna/DNA_sound_types.h
index 60e2ad307e5..45dff0c96fa 100644
--- a/source/blender/makesdna/DNA_sound_types.h
+++ b/source/blender/makesdna/DNA_sound_types.h
@@ -59,7 +59,7 @@ typedef struct bSound {
/**
* The path to the sound file.
*/
- char name[160];
+ char name[240];
/**
* The packed file.