(retrieve): Cut the argument to the command and the first character of

the extension.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@819 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-09-30 16:57:09 +00:00
parent 2e6de9f2fc
commit f4d6b72bfa

View File

@@ -834,7 +834,7 @@ retrieve(char *cmd, char *name)
if(strcmp(tail, p->ext) == 0){ if(strcmp(tail, p->ext) == 0){
sprintf(line, p->cmd, name); sprintf(line, p->cmd, name);
/* XXX */ /* XXX */
line[tail - name] = 0; line[strlen(name) - strlen(p->ext)] = 0;
break; break;
} }
} }