Enlightenment CVS committal
Author : fletch3k
Project : misc
Module : enotes
Dir : misc/enotes/src
Modified Files:
main.c
Log Message:
Configuration Bugs fixed.
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- main.c 2 Feb 2003 10:45:20 -0000 1.3
+++ main.c 3 Feb 2003 19:30:04 -0000 1.4
@@ -173,6 +173,7 @@
{
char *tmp2=malloc(50);
int sectiontype=0;
+ int donebool[4];
if(file!=NULL) {
fclose(file);
}
@@ -208,13 +209,22 @@
}
if(sectiontype==1) {
- strncpy(fn, tmp2, strlen(tmp2)-1);
+ if(donebool[0]!=1) {
+ strncpy(fn, tmp2, strlen(tmp2)-1);
+ donebool[0]=1;
+ }
sectiontype==0;
} else if (sectiontype==3) {
- strncpy(font, tmp2, strlen(tmp2)-1);
+ if(donebool[1]!=1) {
+ strncpy(font, tmp2, strlen(tmp2)-1);
+ donebool[1]=1;
+ }
sectiontype==0;
} else if (sectiontype==4) {
- strncpy(bgfile, tmp2, strlen(tmp2)-1);
+ if(donebool[2]!=1) {
+ strncpy(bgfile, tmp2, strlen(tmp2)-1);
+ donebool[2]==1;
+ }
sectiontype==0;
} else if (sectiontype==5) {
sectiontype++;
@@ -231,7 +241,10 @@
b=atoi(tmp2);
sectiontype++;
} else if (sectiontype==9) {
- strncpy(xbtnfn, tmp2, strlen(tmp2)-1);
+ if(donebool[3]!=1) {
+ strncpy(xbtnfn, tmp2, strlen(tmp2)-1);
+ donebool[3]=1;
+ }
sectiontype++;
}
lp1:
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs