summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-08 23:43:50 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-08 23:57:35 +0200
commit0a154b940dc5657f78e3fe10fc239ed0b46c2eaa (patch)
tree6f3f9e97e7cf938830ded31a4cb2934584a3a521 /source4
parentaa9e782a4d27600096230be44e0e18971e503e20 (diff)
downloadsamba-0a154b940dc5657f78e3fe10fc239ed0b46c2eaa.tar.gz
samba-0a154b940dc5657f78e3fe10fc239ed0b46c2eaa.tar.bz2
samba-0a154b940dc5657f78e3fe10fc239ed0b46c2eaa.zip
s4:registry - "patchfile_preg.c" - assign a better type to the "i" counter variable
The "i" variable sums up "size" values which are of type "size_t". Therefore also "i" itself should be from this type.
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/patchfile_preg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/registry/patchfile_preg.c b/source4/lib/registry/patchfile_preg.c
index 8854225c76..eb84b56403 100644
--- a/source4/lib/registry/patchfile_preg.c
+++ b/source4/lib/registry/patchfile_preg.c
@@ -42,8 +42,7 @@ static WERROR preg_read_utf16(int fd, char *c)
static WERROR preg_write_utf16(int fd, const char *string)
{
codepoint_t v;
- uint16_t i;
- size_t size;
+ size_t i, size;
for (i = 0; i < strlen(string); i+=size) {
v = next_codepoint(&string[i], &size);