git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ce31a
)
s3:utils fix wrong usage of PRIu64 in sscanf
author
Christian Ambach
<ambi@samba.org>
Tue, 16 Apr 2013 10:39:55 +0000
(12:39 +0200)
committer
Christian Ambach
<ambi@samba.org>
Mon, 6 May 2013 14:33:38 +0000
(16:33 +0200)
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/smbcquotas.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbcquotas.c
b/source3/utils/smbcquotas.c
index 7363d6b4a30aea648892b6ecbd238bccabecf510..b875b1eea3f09291991255bad7957e25dce530de 100644
(file)
--- a/
source3/utils/smbcquotas.c
+++ b/
source3/utils/smbcquotas.c
@@
-187,7
+187,9
@@
static int parse_quota_set(TALLOC_CTX *ctx,
switch (todo) {
case PARSE_LIM:
- if (sscanf(p,"%"PRIu64"/%"PRIu64,&pqt->softlim,&pqt->hardlim)!=2) {
+ if (sscanf(p,"%"SCNu64"/%"SCNu64,&pqt->softlim,
+ &pqt->hardlim) != 2)
+ {
return -1;
}