Merge in all recent changes from 0.9.6-stable.

This commit is contained in:
Richard Levitte
2002-05-29 11:29:40 +00:00
parent 7462f2644c
commit 71aa7c586b
11 changed files with 41 additions and 11 deletions

View File

@@ -230,9 +230,16 @@ void program_name(char *in, char *out, int size)
q=strrchr(p,'.');
if (q == NULL)
q = in+size;
strncpy(out,p,q-p);
out[q-p]='\0';
q = p + strlen(p);
strncpy(out,p,size-1);
if (q-p >= size)
{
out[size-1]='\0';
}
else
{
out[q-p]='\0';
}
}
#else
void program_name(char *in, char *out, int size)