[ekg2-commit] ekg2: stuff.c (HEAD) [darkjames]
CVS commit
cvs w toxygen.net
Czw, 3 Maj 2007, 14:38:44 CEST
Module name: ekg2
Changes by: darkjames 2007-05-03 14:38:41
Modified files:
stuff.c
Log message:
debug_error() in prepare_sapath()
Index: stuff.c
===================================================================
RCS file: /home/cvs/ekg2/ekg/stuff.c,v
diff -d -u -r1.193 -r1.194
--- stuff.c 3 May 2007 09:59:47 -0000 1.193
+++ stuff.c 3 May 2007 12:38:41 -0000 1.194
@@ -1523,8 +1523,10 @@
len = strlcpy(path, config_dir ? config_dir : "", sizeof(path));
- if (len + fpassed >= sizeof(path))
+ if (len + fpassed >= sizeof(path)) {
+ debug_error("prepare_sapath() LEVEL0 %d + %d >= %d\n", len, fpassed, sizeof(path));
return NULL;
+ }
if (fpassed) {
va_list ap;
@@ -1536,8 +1538,10 @@
len2 = vsnprintf(&path[len], sizeof(path)-len, filename, ap);
va_end(ap);
- if (len2 == -1 || (len + len2) >= sizeof(path)) /* (len + len2 == sizeof(path)) ? */
+ if (len2 == -1 || (len + len2) >= sizeof(path)) { /* (len + len2 == sizeof(path)) ? */
+ debug_error("prepare_sapath() LEVEL1 %d | %d + %d >= %d\n", len2, len, len2, sizeof(path));
return NULL;
+ }
}
return path;
Więcej informacji o liście dyskusyjnej ekg2-commit