~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/gis/color_str.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*!
2
 
   \file color_str.c
 
2
   \file lib/gis/color_str.c
3
3
 
4
4
   \brief GIS library - color management, named color to RGB triplet
5
5
 
6
 
   (C) 2001-2008 by the GRASS Development Team
 
6
   (C) 2001-2014 by the GRASS Development Team
7
7
 
8
8
   This program is free software under the 
9
9
   GNU General Public License (>=v2). 
115
115
    int num_names = G_num_standard_color_names();
116
116
    int i;
117
117
 
118
 
    G_strcpy(buf, str);
 
118
    strcpy(buf, str);
119
119
    G_chop(buf);
120
120
 
121
121
    G_debug(3, "G_str_to_color(): str = '%s'", buf);