aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dragon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dragon.c b/dragon.c
index fca077c..debe087 100644
--- a/dragon.c
+++ b/dragon.c
@@ -393,8 +393,8 @@ int main (int argc, char **argv) {
exit(0);
}
- if(drag_all){
- uri_collection = malloc(sizeof(char*) * (argc > MAX_SIZE? argc: MAX_SIZE));
+ if (drag_all) {
+ uri_collection = malloc(sizeof(char*) * ((argc > MAX_SIZE ? argc : MAX_SIZE) + 1));
uri_count = 0;
}
bgstack15