summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-04-16 12:39:55 +0200
committerChristian Ambach <ambi@samba.org>2013-05-06 16:33:38 +0200
commite0a0280c4fcf85f28b488d3868be38123910271c (patch)
treee0cb59389cf050df3c646399d91051bac9a20bc4 /source3
parent24ce31a33ff15b11e5c5024b911637a46bbd59ea (diff)
downloadsamba-e0a0280c4fcf85f28b488d3868be38123910271c.tar.gz
samba-e0a0280c4fcf85f28b488d3868be38123910271c.tar.bz2
samba-e0a0280c4fcf85f28b488d3868be38123910271c.zip
s3:utils fix wrong usage of PRIu64 in sscanf
Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbcquotas.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c
index 7363d6b4a3..b875b1eea3 100644
--- 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;
}