Imported Upstream version 2.6.0

This commit is contained in:
arnaud.quette@free.fr 2011-01-26 10:35:08 +01:00
parent 26fb71b504
commit 459aaf9392
510 changed files with 40508 additions and 18859 deletions

View file

@ -52,7 +52,7 @@ static int instcmd(const char *cmdname, const char *extra)
pm_err_t rv = -1;
char *cmdsuffix = NULL;
char *cmdindex = NULL;
char *outletname = NULL;
char outletname[SMALLBUF];
upsdebugx(1, "entering instcmd (%s)", cmdname);
@ -69,7 +69,7 @@ static int instcmd(const char *cmdname, const char *extra)
char buf[32];
cmdindex++;
snprintf(buf, sizeof(buf), "outlet.%i.desc", atoi(cmdindex));
outletname = (char *)dstate_getinfo(buf);
snprintf(outletname, sizeof(outletname), "%s", dstate_getinfo(buf));
}
/* Power on the outlet */