summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 24ff43f..c2087e1 100644
--- a/utils.c
+++ b/utils.c
@@ -49,7 +49,7 @@ int detectOsType()
char* stringedArgument(int argc, char** argv)
{
int numberOfTotalPackages = argc - 2;
- char* arg = (char *) calloc((numberOfTotalPackages * 80), sizeof(char));
+ char* arg = (char *) calloc(((numberOfTotalPackages * 80) + numberOfTotalPackages), sizeof(char));
for( int i = 2; i < argc; i++ )
{