~ubuntu-branches/ubuntu/lucid/swftools/lucid

« back to all changes in this revision

Viewing changes to lib/log.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2009-04-30 05:22:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090430052219-l1n64qofzeq5pej8
Tags: 0.9.0-0ubuntu1
* New upstream release (LP: #369931)
  - patches/01_manpages: edited to match updated version of src/pdf2swf.1 and
    src/wav2swf.1
  - patches/02_faq: edited to match updated version of FAQ
  - patches/04_makefile: edited to delete the patch on lib/Makefile.in and 
    src/Makefile.in (applied upstream)
  - deleted patch 99_configure_for_python2.5_and_2.6 (applied upstream)
  - debian/swftools.doc: deleted installation of TODO and 
    pdf2swf/HOWTO_pdf2swf as they don't exist anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
   along with this program; if not, write to the Free Software
21
21
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
22
22
 
23
 
#ifdef __NT__
24
 
#include "stdafx.h"
 
23
#include <stdlib.h>
25
24
#include <string.h>
26
 
#include <stdlib.h>
 
25
#include <stdarg.h>
 
26
#ifdef WIN32
 
27
//#include "stdafx.h"
27
28
#include <malloc.h>
28
29
#if _MSC_VER > 1000
29
30
#pragma once
30
31
#endif // _MSC_VER > 1000
31
32
#else
32
33
#include <stdio.h>
33
 
#include <stdlib.h>
34
 
#include <stdarg.h>
35
 
#include <string.h>
36
34
#include <unistd.h>
37
35
#endif
38
36
 
207
205
                return;
208
206
    }
209
207
 
210
 
    vsprintf(buf, format, arglist);
 
208
    vsnprintf(buf, sizeof(buf)-1, format, arglist);
211
209
        va_end(arglist);
212
210
    strcat(buf, "\n");
213
211
    log_str(buf);