new option -o
[fw/sdcc] / src / pic16 / pcode.c
index 12fed71666aeaa101d5e83b80d260164623f87c5..b0a6645af6fd3c41c157682353c90e220fc39302 100644 (file)
@@ -2644,7 +2644,7 @@ void pic16_pcode_test(void)
     char buffer[100];
 
     /* create the file name */
-    strcpy(buffer,srcFileName);
+    strcpy(buffer,dstFileName);
     strcat(buffer,".p");
 
     if( !(pFile = fopen(buffer, "w" ))) {