#! /bin/sh /usr/share/dpatch/dpatch-run ## 07_case_cmp.dpatch by <Hector Garcia <hector@debian.org>> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad trunk~/src/xtools.c trunk/src/xtools.c --- trunk~/src/xtools.c 2006-01-20 17:09:43.000000000 +0100 +++ trunk/src/xtools.c 2006-01-20 18:28:52.000000000 +0100 @@ -974,9 +974,9 @@ isosize = 0; /* now do some tests about file-contents */ - if (strncmp(file+strlen(file)-4,".toc",4) == 0) { + if (strncasecmp(file+strlen(file)-4,".toc",4) == 0) { type = 4; - } else if (strncmp(file+strlen(file)-4,".wav",4) == 0) { + } else if (strncasecmp(file+strlen(file)-4,".wav",4) == 0) { /* wav-file */ if (check_wav_file(tmp) == 0) { /* invalid wav */ @@ -1052,7 +1052,7 @@ /* skip to short filenames */ if (len2 < len) continue; - if (strncmp((ent->d_name)+len2-len,img_ext[i],len) == 0) { + if (strncasecmp((ent->d_name)+len2-len,img_ext[i],len) == 0) { /* we found a match */ analyze_imgfile(path,ent->d_name,retlist); }