summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e77aa65)
raw | patch | inline | side by side (parent: e77aa65)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 7 Oct 2007 09:53:21 +0000 (11:53 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 7 Oct 2007 09:53:21 +0000 (11:53 +0200) |
This raises the length of external commands to what fits in the command
buffer (1024 characters).
buffer (1024 characters).
tig.c | patch | blob | history |
index 933d0835e360a557a7618f5fe638d74ae17056c4..c96faaed2119285b165c4be2b0efd61f8d709cd8 100644 (file)
--- a/tig.c
+++ b/tig.c
/* Tokenize */
while (argc < ARRAY_SIZE(argv) && (valuelen = strcspn(value, " \t"))) {
argv[argc++] = value;
-
value += valuelen;
- if (!*value)
+
+ /* Nothing more to tokenize or last available token. */
+ if (!*value || argc >= ARRAY_SIZE(argv))
break;
*value++ = 0;