Skip to contentSkip to conversation

process filtering for fault-injection capabilities [bug fix]

PATCH Don Mullis 1 participant 1 message Sep 6, 2006 Library code

lore
Share & tools
lore

Don Mullis

author
#0 lore raw

Type agreement in sscanf().

---
 lib/should_fail.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/should_fail.c +1 -1
Index: linux-2.6.17/lib/should_fail.c
===================================================================
@@ -16,7 +16,7 @@ int setup_should_fail(struct should_fail
 	unsigned long filter;
 
 	/* "<probability>,<interval>,<times>,<space>,<process-filter>" */
-	if (sscanf(str, "%lu,%lu,%d,%d,%d", &probability, &interval, &times,
+	if (sscanf(str, "%lu,%lu,%d,%d,%lu", &probability, &interval, &times,
 		   &space, &filter) < 5)
 		return 0;