1. 24 Apr, 2016 1 commit
  2. 12 Apr, 2016 1 commit
  3. 01 Mar, 2016 1 commit
  4. 16 Feb, 2016 2 commits
  5. 29 Sep, 2015 1 commit
  6. 15 Sep, 2015 1 commit
  7. 26 Aug, 2015 5 commits
  8. 06 Feb, 2015 2 commits
  9. 19 Jan, 2015 1 commit
  10. 10 Dec, 2014 1 commit
  11. 09 Dec, 2014 1 commit
  12. 10 Jun, 2014 13 commits
    • anthraxx's avatar
      some manual (unnecessery) free for good manner · 4a28a8de
      anthraxx authored
      its not needed because OS is responsible to cleanup
      mem allocated by terminating process, but its still
      a good manner to explicitly free everything that gets
      allocated...
      yes this is "noise" if it terminates but neither does
      harm to feel being responsible to clean up everything
      ourselves. :)
      
      at least valgrind is silently happy :P :D
      4a28a8de
    • anthraxx's avatar
      C90 compilant commenting style · 76942f69
      anthraxx authored
      76942f69
    • gnomus's avatar
      Merge branch 'develop' into 'master' · 496ebd11
      gnomus authored
       nitpicking and better c standard compliant code
      
      let us...
      
      ...use the proper main(void) signature.
      
      ...use variable names which speak for their semantic content not their type, as types are explicitly declared.
      
      ...use perror() to signal the correct errno message upon error.
      
      ...move the password out of the running code, so we can change and find it easily.
      
      ...use exit() as it's a linear CLI tool, which can and should exit on certain failure/error states.
      
      ...decouple error handling from business logic. (e.g. getline() error handling and strcmp() for password check).
      
      ...not free() at the end of the program as it **is** and should **never** be necessary, since the OS **must** handle this.
      496ebd11
    • Oliver Feldt's avatar
      29786349
    • gnomus's avatar
      Merge branch 'master' into 'master' · e315738b
      gnomus authored
      using printf to avoid \n for pwd input message
      
      newline after "Please enter Password: " looks strange
      e315738b
    • anthraxx's avatar
      using printf to avoid \n for pwd input message · 586fa66c
      anthraxx authored
      586fa66c
    • gnomus's avatar
      Merge branch 'master' into 'master' · 0e62272c
      gnomus authored
      memleak bugfix + cleanup + Makefile
      
      - memleak bugfix as free() was missing
      - dont call malloc() manually (the old way getline() always called realloc() anyway because of the way the malloc() was written [did not allocate enought memory for the string])
      - small minor cleanup
      - adding simple Makefile to build door challenge
      0e62272c
    • anthraxx's avatar
      adding simple makefile to build door challenge · e5931c0a
      anthraxx authored
      e5931c0a
    • anthraxx's avatar
      adding +x to shell-scripts · 6128aef5
      anthraxx authored
      6128aef5
    • anthraxx's avatar
      rename my_string to input_str for better naming · 6a3da815
      anthraxx authored
      6a3da815
    • anthraxx's avatar
      reduce complexity + just free() in a single place · ea0b0d95
      anthraxx authored
      - therefor if the program gets extended, its unlikly that
        someone will forget to call free()
      - also this gets rid of copy-paste free() calls (which look stupid)
      ea0b0d95
    • anthraxx's avatar
      explicitly import string.h for strcmp() · bf5f9864
      anthraxx authored
      - implicitly declaring library function is bad manner :)
      bf5f9864
    • anthraxx's avatar
      fixing memleak of input char* · 320c0928
      anthraxx authored
      - adding missing free() calls
      - dont malloc ourselves as getline() also does a malloc
        (and anyway called realloc before if the size_t was
         smaller then the actual len(input-line) to behaviour
         is the same!)
      320c0928
  13. 07 Jun, 2014 5 commits
  14. 06 Jun, 2014 4 commits