cosmetic backlog bugfix

This commit is contained in:
nohar 2005-05-08 21:09:11 +00:00
parent 67abb60976
commit f5c54c662a
1 changed files with 3 additions and 3 deletions

View File

@ -633,7 +633,7 @@ static char *log_beautify(char *buf, char *dest, int *raw)
*raw = 1;
p = ret = (char *)malloc(
1 + lon + strlen(LAMESTRING) + strlen(dest) + 2 + lots +
1 + lom + 3 + action * (2 + strlen("ACTION")));
1 + lom + 3 + action * (2 + strlen("ACTION ")));
if (!p)
fatal("out of memory");
*p++ = ':';
@ -647,8 +647,8 @@ static char *log_beautify(char *buf, char *dest, int *raw)
p += 2;
if (action) {
*p++ = 1;
memcpy(p, "ACTION", strlen("ACTION"));
p += strlen("ACTION");
memcpy(p, "ACTION ", strlen("ACTION "));
p += strlen("ACTION ");
}
memcpy(p, sots, lots);
p += lots;