earlybrowserreborn - Diff between revs 1 and 5

Subversion Repositories:
Rev:
Show entire file - Ignore whitespace
Rev 1 Rev 5
Line 19... Line 19...
19         char *buffer = XtMalloc(L_tmpnam); 19         char *buffer = XtMalloc(L_tmpnam);
20         char *temp = tmpnam(buffer); 20         char *temp = tmpnam(buffer);
21         21        
22         if ((fileout = open(temp, O_CREAT | O_RDWR, 0666)) > 0) 22         if ((fileout = open(temp, O_CREAT | O_RDWR, 0666)) > 0)
23         { 23         {
24           if (!strcmp("midas.uid", *filename)) -  
-   24           if (strstr(*filename, "midas.uid"))
25               write(fileout, midas, sizeof(midas)); 25               write(fileout, midas, sizeof(midas));
26           else if (!strcmp("midaswww.uid", *filename)) -  
-   26           else if (strstr(*filename, "midaswww.uid"))
27               write(fileout, midaswww, sizeof(midaswww)); 27               write(fileout, midaswww, sizeof(midaswww));
28           else 28           else
29           { 29           {
30               printf("MidasMakeUid error: don't find the UIC file of %s\n",*filename); 30               printf("MidasMakeUid error: don't find the UIC file of %s\n",*filename);
31               unlink(temp); 31               unlink(temp);