~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/gen-release/step2/src/FilenameInfo.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  // check if the name ends with '/' or '\\'
36
36
  if (n) {
37
37
    int len = strlen (n);
38
 
    if (len >= 1 && n[len - 1] == '/' || n[len - 1] == '\\') {
 
38
    bool have_trailing_delim = false;
 
39
    while (len >= 1 && (n[len - 1] == '/' || n[len - 1] == '\\')) {
 
40
      have_trailing_delim = true;
 
41
      len--;
 
42
    }
 
43
    len++;
 
44
    if (have_trailing_delim) {
39
45
      // assign _name with a stripped temporary name
40
46
      char * new_name = new char[len + 1];
41
47
      strcpy (new_name, n);