~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to lib/miofile.C

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2007-10-25 20:54:09 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071025205409-ib4417foffej3s4s
Tags: 5.10.27-1
[ Frank S. Thomas ]
* New upstream release. (closes: #447929)
  - Handles change in /proc/cpuinfo on powerpc introduced in Linux 2.6.23.
    Thanks to Thibaut VARENE <varenet@debian.org> for the patch.
    (closes: #437459)
  - Allows to set arbitrary many alternate platforms in the client's config
    file cc_config.xml with the <alt_platform> element which is a direct
    child of the <options> element. (closes: #437326)
  - BOINC Manager: At account creation check if wxGetUserName() returned an
    empty string and if it did use the output of wxGetUserId() instead.
    Thanks to Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp> for the
    excellent bug report. (closes: #447320)
* debian/control:
  - Moved Homepage pseudo field in the long descriptions to the source stanza
    because this is now a propper debian/control field supported by dpkg.
  - Removed XS- prefix from Vcs fields since they are now officially
    supported by dpkg.
* debian/boinc-client.init: Print the scheduling status of boinc_client's
  children only if there are any present, otherwise schedtool would be
  called without arguments and would print its usage text.
* debian/icons/: Use icons with transparent background.
* debian/boinc-manager.desktop:
  - Addded Portuguese translations for GenericName and Comment, thanks to
    Marco Rodrigues <gothicx@sapo.pt>.
  - Monitor is a subcategory of the System main category, so use System
    instead of Utility.
  - Removed the Encoding key since it is deprecated in the Desktop Entry
    Specification 1.0 and added the Version key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    return retval;
79
79
}
80
80
 
81
 
char* MIOFILE::fgets(char* dst, int len) {
 
81
char* MIOFILE::fgets(char* dst, int dst_len) {
82
82
    if (f) {
83
 
        return ::fgets(dst, len, f);
 
83
        return ::fgets(dst, dst_len, f);
84
84
    }
85
85
    const char* q = strchr(buf, '\n');
86
86
    if (!q) return 0;
87
87
 
88
88
    q++;
89
89
    int n = (int)(q - buf);
90
 
    if (n > len-1) n = len-1;
 
90
    if (n > dst_len-1) n = dst_len-1;
91
91
    memcpy(dst, buf, n);
92
92
    dst[n] = 0;
93
93
 
144
144
    return ERR_XML_PARSE;
145
145
}
146
146
 
147
 
const char *BOINC_RCSID_37339d4dc0 = "$Id: miofile.C 12216 2007-03-13 19:33:27Z boincadm $";
 
147
const char *BOINC_RCSID_37339d4dc0 = "$Id: miofile.C 13226 2007-07-27 04:09:55Z romw $";