/[gentoo-src]/Xorgautoconfig/Xorgautoconfig.c
Gentoo

Diff of /Xorgautoconfig/Xorgautoconfig.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.20 Revision 1.21
88 char kern_ver [3]; 88 char kern_ver [3];
89 89
90 uname(&kern); 90 uname(&kern);
91 if(strlen(kern.release) > 6) { 91 if(strlen(kern.release) > 6) {
92 strncpy(kern_ver, (const char *)(&kern.release) + 4, 2); 92 strncpy(kern_ver, (const char *)(&kern.release) + 4, 2);
93 kern_ver[2] = (char) NULL; 93 kern_ver[2] = 0;
94 94
95 if(atoi(kern_ver) >= 12) 95 if(atoi(kern_ver) >= 12)
96 kern_new = TRUE; 96 kern_new = TRUE;
97 } 97 }
98 98

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20