summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-17 20:42:39 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-17 20:42:39 +0200
commit61d4f8be6080d1793040c94b431bd4529e8c6aac (patch)
treeacf905ac9f1d60865f1c9c998cf9c8ea6b10e1a2 /source4
parent2cf897b10aa6b0d9565333085477e348261bfb2c (diff)
downloadsamba-61d4f8be6080d1793040c94b431bd4529e8c6aac.tar.gz
samba-61d4f8be6080d1793040c94b431bd4529e8c6aac.tar.bz2
samba-61d4f8be6080d1793040c94b431bd4529e8c6aac.zip
s4: int32 handling: previous fix was not fully correct
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/schema/schema_syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c
index 6159ab48b1..2f14e3c472 100644
--- a/source4/dsdb/schema/schema_syntax.c
+++ b/source4/dsdb/schema/schema_syntax.c
@@ -236,7 +236,7 @@ static WERROR dsdb_syntax_INT32_ldb_to_drsuapi(struct ldb_context *ldb,
/* We've to use "strtoll" here to have the intended overflows.
* Otherwise we may get "LONG_MAX" and the conversion is wrong. */
- v = strtoll((const char *)in->values[i].data, NULL, 0);
+ v = (int32_t) strtoll((char *)in->values[i].data, NULL, 0);
SIVALS(blobs[i].data, 0, v);
}