~ubuntu-branches/ubuntu/natty/gpp4/natty

« back to all changes in this revision

Viewing changes to src/cmap_labels.c

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2008-12-03 11:21:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081203112142-bvuelg39lt2lnokb
Tags: 1.1.0-0ubuntu1
* New upstream version (LP: #322205)
* Some compilation warnings fixed, patch 01-ubuntu-fixes
  sent upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  for (i=0 ; i!=mfile->labels.number ; i++) {
40
40
    ccp4_file_readchar(mfile->stream,(uint8 *) buffer,n_byt_label);
41
41
    cptr = buffer+n_byt_label;
42
 
    while (*--cptr == ' ');
 
42
    while (cptr> buffer && *--cptr == ' ');
43
43
    *(++cptr) = '\0';
44
44
    mfile->labels.labels[i] = strdup(buffer);
45
45
  }