diff --git a/src/butc/tcmain.c b/src/butc/tcmain.c index 885d44c4e6..f5f1e94475 100644 --- a/src/butc/tcmain.c +++ b/src/butc/tcmain.c @@ -288,10 +288,9 @@ stringNowReplace(char *logFile, char *deviceName) *pos = '_'; strcat(logFile, deviceName); /* now put back deviceName to the way it was */ - if (mvFlag) { - mvFlag = 0; + if (mvFlag) deviceName -= devPrefLen; - } + strcpy(deviceName, storeDevice); return (0);