Changeset 522441 in git


Ignore:
Timestamp:
Jun 25, 2006, 6:06:19 PM (18 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3920458ad215165d459d13667e0d16a81109bfa9
Parents:
97ec5954fffa48d7836ac504f7e5bade02708a7d
Message:
*motsak: strrchr instead of strchr in template for mod_init.


git-svn-id: file:///usr/local/Singular/svn/trunk@9264 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/modgen/creat_top.cc

    r97ec595 r522441  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: creat_top.cc,v 1.23 2006-04-11 19:47:32 anne Exp $ */
     4/* $Id: creat_top.cc,v 1.24 2006-06-25 16:06:19 motsak Exp $ */
    55/*
    66* ABSTRACT: lib parsing
     
    136136  fprintf(fp, "  tempstr = (char *)omAlloc(strlen(currPack->libname)+5);\n");
    137137  fprintf(fp, "  memset(tempstr,0,strlen(currPack->libname)+5);\n");
    138   fprintf(fp, "  tailstr = strchr(currPack->libname,'.');\n");
     138  fprintf(fp, "  tailstr = strrchr(currPack->libname,'.');\n");
    139139  fprintf(fp, "  memcpy(tempstr,currPack->libname,strlen(currPack->libname)-strlen(tailstr));\n");
    140140  fprintf(fp, "  memcpy(tempstr+strlen(tempstr),\".bin\",4);\n");
Note: See TracChangeset for help on using the changeset viewer.