~ubuntu-branches/ubuntu/wily/grub2/wily

« back to all changes in this revision

Viewing changes to util/grub-menulst2cfg.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-01-11 17:11:44 UTC
  • mto: (17.3.26 experimental)
  • mto: This revision was merged to the branch mainline in revision 60.
  • Revision ID: james.westby@ubuntu.com-20110111171144-o2h6luxzei5fivmf
Tags: upstream-1.99~20110111
ImportĀ upstreamĀ versionĀ 1.99~20110111

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <string.h>
24
24
#include <errno.h>
25
25
#include <grub/util/misc.h>
 
26
#include <grub/misc.h>
26
27
 
27
28
int
28
29
main (int argc, char **argv)
78
79
      {
79
80
        char *oldname = NULL;
80
81
        char *newsuffix;
 
82
        char *ptr;
 
83
 
 
84
        for (ptr = buf; *ptr && grub_isspace (*ptr); ptr++);
81
85
 
82
86
        oldname = entryname;
83
 
        parsed = grub_legacy_parse (buf, &entryname, &newsuffix);
 
87
        parsed = grub_legacy_parse (ptr, &entryname, &newsuffix);
84
88
        if (newsuffix)
85
89
          {
86
90
            suffixlen += strlen (newsuffix);