~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to lib/backupfile.c

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-01-03 17:34:45 UTC
  • mto: (6.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20130103173445-5vf8qmnfgd7ug67h
Tags: upstream-2.7.1
ImportĀ upstreamĀ versionĀ 2.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* backupfile.c -- make Emacs style backup file names
2
2
 
3
 
   Copyright (C) 1990-2006, 2009-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 1990-2006, 2009-2012 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
75
75
   - It's typically faster.
76
76
   POSIX says that only '0' through '9' are digits.  Prefer ISDIGIT to
77
77
   ISDIGIT unless it's important to use the locale's definition
78
 
   of `digit' even when the host does not conform to POSIX.  */
 
78
   of "digit" even when the host does not conform to POSIX.  */
79
79
#define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
80
80
 
81
81
/* The extension added to file names to produce a simple (as opposed