projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
And everyone's favourite cosmetic change: Unix PuTTY now doesn't
[u/mdw/putty]
/
plink.c
diff --git
a/plink.c
b/plink.c
index
b1bebf9
..
3848214
100644
(file)
--- a/
plink.c
+++ b/
plink.c
@@
-410,13
+410,13
@@
int main(int argc, char **argv)
while (*p) {
if (cmdlen >= cmdsize) {
cmdsize = cmdlen + 512;
while (*p) {
if (cmdlen >= cmdsize) {
cmdsize = cmdlen + 512;
- command = sre
alloc(command, cmdsize
);
+ command = sre
size(command, cmdsize, char
);
}
command[cmdlen++]=*p++;
}
if (cmdlen >= cmdsize) {
cmdsize = cmdlen + 512;
}
command[cmdlen++]=*p++;
}
if (cmdlen >= cmdsize) {
cmdsize = cmdlen + 512;
- command = sre
alloc(command, cmdsize
);
+ command = sre
size(command, cmdsize, char
);
}
command[cmdlen++]=' '; /* always add trailing space */
if (--argc) p = *++argv;
}
command[cmdlen++]=' '; /* always add trailing space */
if (--argc) p = *++argv;
@@
-651,7
+651,7
@@
int main(int argc, char **argv)
/* Expand the buffer if necessary. */
if (i > sksize) {
sksize = i + 16;
/* Expand the buffer if necessary. */
if (i > sksize) {
sksize = i + 16;
- sklist = sre
alloc(sklist, sksize * sizeof(*sklist)
);
+ sklist = sre
size(sklist, sksize, SOCKET
);
}
/* Retrieve the sockets into sklist. */
}
/* Retrieve the sockets into sklist. */