~ubuntu-branches/debian/wheezy/eperl/wheezy

« back to all changes in this revision

Viewing changes to eperl_debug.c

  • Committer: Bazaar Package Importer
  • Author(s): Denis Barbier
  • Date: 2001-12-18 20:40:24 UTC
  • Revision ID: james.westby@ubuntu.com-20011218204024-k0oaqq2eaw733v30
Tags: 2.2.14-4
* Remove emacs crap from debian/changelog
* Fix misspelling in debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
**
16
16
**  ======================================================================
17
17
**
18
 
**  Copyright (c) 1996,1997,1998 Ralf S. Engelschall <rse@engelschall.com>
 
18
**  Copyright (c) 1996,1997,1998,1999 Ralf S. Engelschall <rse@engelschall.com>
19
19
**
20
20
**  This program is free software; it may be redistributed and/or modified
21
21
**  only under the terms of either the Artistic License or the GNU General
51
51
    va_start(ap, str);
52
52
    if (fDebug) {
53
53
        if ((fp = fopen(cpDebugFile, "a")) != NULL) {
54
 
            vsprintf(buf, str, ap);
 
54
            vsnprintf(buf, sizeof(buf), str, ap);
 
55
            buf[sizeof(buf)-1] = '\0';
55
56
            fprintf(fp, "%s", buf);
56
57
            fclose(fp);
57
58
        }