File garden-bo.patch of Package garden

--- ./src/sound.org	2010-03-06 06:03:36.000000000 +0900
+++ ./src/sound.c	2012-02-19 23:57:15.377560430 +0900
@@ -1605,16 +1605,16 @@
 
 	char filename_buffer[DATADIR_SIZE];
 
-	strncpy(filename_buffer, data_directory, sizeof(char) * DATADIR_SIZE);
+	strncpy(filename_buffer, data_directory, sizeof(char) * DATADIR_SIZE - 1);
 	if (direct == DIRECT_WAV)
 //  strcpy(sfile_name, ".//wavs//");
-		strncat(filename_buffer, "wavs/", sizeof(char) * DATADIR_SIZE);
+		strncat(filename_buffer, "wavs/", sizeof(char) * DATADIR_SIZE - 1);
 	else
 //    strcpy(sfile_name, ".//beat//");
-		strncat(filename_buffer, "beat/", sizeof(char) * DATADIR_SIZE);
+		strncat(filename_buffer, "beat/", sizeof(char) * DATADIR_SIZE - 1);
 
-	strncat (filename_buffer, sfile, sizeof(char) * DATADIR_SIZE);
-	strncat (filename_buffer, ".wav", sizeof(char) * DATADIR_SIZE);
+	strncat (filename_buffer, sfile, sizeof(char) * DATADIR_SIZE - 1);
+	strncat (filename_buffer, ".wav", sizeof(char) * DATADIR_SIZE - 1);
 
 	sounds[samp] = load_sample (filename_buffer);