Commit 68384a27e5780fa36e62850d72806e41b3423e6b

Jakob Pfender 2011-05-17T17:24:28

config.c: Fix format string error

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/config.c b/src/config.c
index 2ee49e0..29b9b79 100644
--- a/src/config.c
+++ b/src/config.c
@@ -248,7 +248,7 @@ int git_config_get_long(git_config *cfg, const char *name, long int *out)
 		num *= 1024 * 1024 * 1024;
 		break;
 	default:
-		return git__throw(GIT_EINVALIDTYPE, "Failed to get value for %s. Value is of invalid type");
+		return git__throw(GIT_EINVALIDTYPE, "Failed to get value for %s. Value is of invalid type", name);
 	}
 
 	*out = num;