~ubuntu-branches/ubuntu/saucy/xterm/saucy-proposed

« back to all changes in this revision

Viewing changes to misc.c

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Kavanagh
  • Date: 2008-11-23 17:15:10 UTC
  • mfrom: (1.1.10 upstream) (11.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081123171510-fdwvfr4ytnfvjwjl
Tags: 237-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Enabled URL hilighting
  - Maintainer field
  - rm -rf for .pc patches
* Closes (LP: #301451)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: misc.c,v 1.383 2008/04/14 00:05:43 tom Exp $ */
 
1
/* $XTermId: misc.c,v 1.384 2008/07/27 15:38:05 tom Exp $ */
2
2
 
3
3
/*
4
4
 *
3309
3309
    if (*result != '\0' && strchr("+/-", *result) == 0) {
3310
3310
        /* find it in $PATH */
3311
3311
        if ((s = x_getenv("PATH")) != 0) {
3312
 
            if ((tmp = TypeMallocN(char, strlen(leaf) + strlen(s) + 1)) != 0) {
 
3312
            if ((tmp = TypeMallocN(char, strlen(leaf) + strlen(s) + 2)) != 0) {
3313
3313
                Bool found = False;
3314
3314
                while (*s != '\0') {
3315
3315
                    strcpy(tmp, s);