~ubuntu-branches/ubuntu/intrepid/cvsd/intrepid

« back to all changes in this revision

Viewing changes to xmalloc.c

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2008-06-13 16:30:00 UTC
  • mfrom: (3.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080613163000-79t36wjqivc6zwst
Tags: 1.0.15
* fix init script to return proper exit code when stopping non-running cvsd
  or starting already-started cvsd
* take a shot at making debian/copyright machine parseable
* cvsd-buildroot now removes tls directories in the chroot jail if the
  environment outside it does not contain them (any more) (closes: #456111)
* upgrade to standards-version 3.8.0 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
   xmalloc.c - malloc wrapper
3
3
 
4
 
   Copyright (C) 2002, 2003 Arthur de Jong.
 
4
   Copyright (C) 2002, 2003, 2007 Arthur de Jong.
5
5
 
6
6
   This program is free software; you can redistribute it and/or modify
7
7
   it under the terms of the GNU General Public License as published by
43
43
char *xstrdup(const char *s)
44
44
{
45
45
  char *tmp;
46
 
  int l;
 
46
  size_t l;
47
47
  if (s==NULL)
48
48
  {
49
49
    log_log(LOG_CRIT,"xstrdup() called with NULL");