Ver a proveniência
Merge pull request #5092 from maiconpintoabreu/fix-rename-missing-newname
[remx] Add warning for missing new name to avoid segmentation fault
pull/5032/head^2
Ray
há 2 meses
committed by
GitHub
ascendente
cometimento
948b48430d
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com
1 adições e
0 eliminações
-
tools/rexm/rexm.c
|
|
@ -278,6 +278,7 @@ int main(int argc, char *argv[]) |
|
|
|
else if (strcmp(argv[1], "rename") == 0) |
|
|
|
{ |
|
|
|
if (argc == 2) LOG("WARNING: No filename provided to be renamed\n"); |
|
|
|
else if (argc == 3) LOG("WARNING: No new filename provided to be renamed\n"); |
|
|
|
else if (argc > 4) LOG("WARNING: Too many arguments provided\n"); |
|
|
|
else |
|
|
|
{ |
|
|
|