projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert sizeof foo to sizeof(foo).
[tinc]
/
src
/
process.c
diff --git
a/src/process.c
b/src/process.c
index
5bb7eb3
..
153dc67
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-63,22
+63,22
@@
static bool install_service(void) {
}
HMODULE module = GetModuleHandle(NULL);
}
HMODULE module = GetModuleHandle(NULL);
- GetModuleFileName(module, command + 1, sizeof
command
- 1);
- command[sizeof
command
- 1] = 0;
+ GetModuleFileName(module, command + 1, sizeof
(command)
- 1);
+ command[sizeof
(command)
- 1] = 0;
- strncat(command, "\"", sizeof
command
- strlen(command));
+ strncat(command, "\"", sizeof
(command)
- strlen(command));
for(char **argp = g_argv + 1; *argp; argp++) {
char *space = strchr(*argp, ' ');
for(char **argp = g_argv + 1; *argp; argp++) {
char *space = strchr(*argp, ' ');
- strncat(command, " ", sizeof
command
- strlen(command));
+ strncat(command, " ", sizeof
(command)
- strlen(command));
if(space)
if(space)
- strncat(command, "\"", sizeof
command
- strlen(command));
+ strncat(command, "\"", sizeof
(command)
- strlen(command));
- strncat(command, *argp, sizeof
command
- strlen(command));
+ strncat(command, *argp, sizeof
(command)
- strlen(command));
if(space)
if(space)
- strncat(command, "\"", sizeof
command
- strlen(command));
+ strncat(command, "\"", sizeof
(command)
- strlen(command));
}
service = CreateService(manager, identname, identname,
}
service = CreateService(manager, identname, identname,