X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/a8dad3d5bafadb9bca3335952462f05192a5059c..f00458382f8b687eeef68f9f5fe9e9245a4d5fb5:/emufs_gui/emufs_view.c diff --git a/emufs_gui/emufs_view.c b/emufs_gui/emufs_view.c index e829877..719a549 100644 --- a/emufs_gui/emufs_view.c +++ b/emufs_gui/emufs_view.c @@ -94,8 +94,10 @@ t_Param param_ok(int argc, char *argv[]) if (((n == 1) || (n == 3)) && ((i+2)>=argc)) return BLOQUE_NO_DEFINIDO; parametros.tipo_arch_fact = n; - parametros.tam_bloque_fact = atoi(argv[i+2]); - if (parametros.tam_bloque_fact <= 0) return NULL_BLOCK_FOUND; + if (n != 2) { + parametros.tam_bloque_fact = atoi(argv[i+2]); + if (parametros.tam_bloque_fact <= 0) return NULL_BLOCK_FOUND; + } parametros.xml_fact = i; } else { /* Ops, no hay mas parametros */