diff options
-rw-r--r-- | src/ogAdmServer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ogAdmServer.c b/src/ogAdmServer.c index 5d46765..17c9d39 100644 --- a/src/ogAdmServer.c +++ b/src/ogAdmServer.c @@ -891,12 +891,13 @@ bool actualizaSoftware(struct og_dbi *dbi, char *sft, char *par,char *ido, } // Recupera el identificador del software - tbidsoftware[i] = dbi_conn_sequence_last(dbi->conn, NULL); + tbidsoftware[i - 1] = dbi_conn_sequence_last(dbi->conn, NULL); } else { - tbidsoftware[i] = dbi_result_get_uint(result, "idsoftware"); + tbidsoftware[i - 1] = dbi_result_get_uint(result, "idsoftware"); } dbi_result_free(result); } + lon--; // Ordena tabla de identificadores para cosultar si existe un pefil con esas especificaciones |