File lx200.diff of Package xephem

--- GUI/xephem/tools/lx200xed/liblx200.c
+++ GUI/xephem/tools/lx200xed/liblx200.c	2009-07-31 20:16:12.637843655 +0200
@@ -855,7 +855,7 @@
      return(LX200_FALSE);  /*Probably ought to verify all characters are acceptable*/
    szCmd[1]='L' + iSite;
    szCmd[2]='\0';
-   snprintf(szSite,6,"%3s",buf);
+   snprintf(szSite,sizeof(buf),"%3s",buf);
    return(lx200_set_generic(fd,szCmd,szSite));   
 }
 
openSUSE Build Service is sponsored by