diff -up aimage-3.2.0/src/aimage_os.cpp.gcc44 aimage-3.2.0/src/aimage_os.cpp
--- aimage-3.2.0/src/aimage_os.cpp.gcc44 2009-03-02 13:36:09.000000000 +0100
+++ aimage-3.2.0/src/aimage_os.cpp 2009-03-02 13:41:32.000000000 +0100
@@ -33,11 +33,15 @@ void checkline(const char *name,const ch
{
while(buf[0] && isspace(buf[0])) buf++; // advance buf to end of spaces
- char *pos = strstr(buf,name);
+ char *buf_tmp;
+ char *name_tmp;
+ strcpy(buf_tmp, buf);
+ strcpy(name_tmp, name);
+ char *pos = strstr(buf_tmp,name_tmp);
if(pos==0) return;
/* The string was found */
- char *cc = pos + strlen(name); // skip past to the end of the string
+ char *cc = pos + strlen(name_tmp); // skip past to the end of the string
while(*cc && isspace(*cc)) cc++; // scan to end of spaces
char *dd = index(cc,'\n'); // can we find a \n?
if(dd) *dd = '\000'; // yes; clear it