Blame tmux-fix-malloc-check-error.patch
|
Filipe Rosset |
9722a8 |
--- cmd.c-orig 2014-02-26 09:57:06.441154327 -0300
|
|
Filipe Rosset |
9722a8 |
+++ cmd.c 2014-02-26 09:58:00.631888951 -0300
|
|
Filipe Rosset |
9722a8 |
@@ -138,6 +138,9 @@
|
|
Filipe Rosset |
9722a8 |
size_t arglen;
|
|
Filipe Rosset |
9722a8 |
int i;
|
|
Filipe Rosset |
9722a8 |
|
|
Filipe Rosset |
9722a8 |
+ if (argc == 0)
|
|
Filipe Rosset |
9722a8 |
+ return (0);
|
|
Filipe Rosset |
9722a8 |
+
|
|
Filipe Rosset |
9722a8 |
*buf = '\0';
|
|
Filipe Rosset |
9722a8 |
for (i = 0; i < argc; i++) {
|
|
Filipe Rosset |
9722a8 |
if (strlcpy(buf, argv[i], len) >= len)
|