git » fp-git.git » commit df7a177

bugfix: thanx valgrind!

author ecalot
2004-06-26 00:09:36 UTC
committer ecalot
2004-06-26 00:09:36 UTC
parent 46d3bb95f18f3d8ec2027d986dbb429fb771e961

bugfix: thanx valgrind!

FP/src/res/disk.c +1 -1

diff --git a/FP/src/res/disk.c b/FP/src/res/disk.c
index 094b39f..e5b3074 100644
--- a/FP/src/res/disk.c
+++ b/FP/src/res/disk.c
@@ -63,7 +63,7 @@ const char *repairFolders(const char* a) {
 	int i,k;
 	static char result[MAX_FILENAME_SIZE];
 
-	for (i=0,k=0;a[i]&&(k<MAX_FILENAME_SIZE);) {
+	for (i=0,k=0;(k<MAX_FILENAME_SIZE)&&a[i];) {
 		if (isDirSep(a,i)) {
 			result[k]=DIR_SEPARATOR;
 			i++;